diff options
author | Madan Ramakrishnan <madanr79@gmail.com> | 2012-04-16 07:29:49 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-04-20 11:35:21 +0200 |
commit | ec56dc8eadbcda3ef027d9add23db5642bc14d8c (patch) | |
tree | b89e6e35c71561017aa6b493e79bcb58f2768c1f | |
parent | ec7052d1c7bfcdb7eebe940da0c2bd1bc5882937 (diff) | |
download | org-mode-ec56dc8eadbcda3ef027d9add23db5642bc14d8c.tar.gz |
org-agenda.el: Fix `org-agenda-bulk-toggle'.
* org-agenda.el (org-agenda-bulk-mark): Truly make arg optional as
advertised by the function.
Problem here was that `org-agenda-bulk-toggle' calls
`org-agenda-bulk-mark' with no parameters; however, the (max arg 1)
call inside `org-agenda-bulk-mark' will fail with no parameter.
TINYCHANGE
-rw-r--r-- | lisp/org-agenda.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 3bb0fc8..ddb56ca 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8294,7 +8294,7 @@ This is a command that has to be installed in `calendar-mode-map'." (defun org-agenda-bulk-mark (&optional arg) "Mark the entry at point for future bulk action." (interactive "p") - (dotimes (i (max arg 1)) + (dotimes (i (or arg 1)) (unless (org-get-at-bol 'org-agenda-diary-link) (let* ((m (org-get-at-bol 'org-hd-marker)) ov) |