diff options
author | Madan Ramakrishnan <madanr79@gmail.com> | 2012-04-16 07:29:49 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-04-21 12:13:16 +0200 |
commit | edb7e341d110f4f695ecde9cd620cad80d28f1d8 (patch) | |
tree | 8d9d7e007378800f5b4f569b9705a07bad5e8f2e | |
parent | 4e4a7eb029d0a7f4177a207a6f114a06b3396149 (diff) | |
download | org-mode-edb7e341d110f4f695ecde9cd620cad80d28f1d8.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) |