org-agenda: Fix logging with bulk-deadlining

* lisp/org-agenda.el (org-agenda-bulk-action): Do not request logging
  writing a note when multiple entries are being re-deadline'd at the
  same time.

Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://permalink.gmane.org/gmane.emacs.orgmode/113426>
This commit is contained in:
Nicolas Goaziou 2017-05-12 00:39:06 +02:00
parent ffa5a93764
commit 0255538701

View file

@ -9969,11 +9969,13 @@ The prefix arg is passed through to the command if possible."
(c1 (if (eq action ?s) 'org-agenda-schedule
'org-agenda-deadline)))
;; Make sure to not prompt for a note when bulk
;; rescheduling as Org cannot cope with simultaneous Org.
;; Besides, it could be annoying depending on the number
;; of items re-scheduled.
;; rescheduling as Org cannot cope with simultaneous
;; notes. Besides, it could be annoying depending on the
;; number of items re-scheduled.
(setq cmd `(eval '(let ((org-log-reschedule
(and org-log-reschedule 'time)))
(and org-log-reschedule 'time))
(org-log-redeadline
(and org-log-redeadline 'time)))
(,c1 arg ,time))))))
((equal action ?S)