summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Maus <dmaus@ictsoc.de>2011-08-25 06:25:34 +0200
committerBastien Guerry <bzg@altern.org>2011-10-22 16:20:44 +0200
commit440ec7e2daac77cd6002f4b1ce749319ab16b065 (patch)
tree2df9e17a88ceb2745d76554b78934ff0ba64fb73
parent2ac0810d190113e4fca60aab67567496cf20b5a9 (diff)
downloadorg-mode-440ec7e2daac77cd6002f4b1ce749319ab16b065.tar.gz
Avoid conflict between bulk command and loop-over-headlines
* org-agenda.el (org-agenda-bulk-action): Bind `org-loop-over-headlines-in-active-region' to nil to avoid conflict with bulk command.
-rw-r--r--lisp/org-agenda.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 3f58a90..292b1ac 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8358,7 +8358,8 @@ The prefix arg is passed through to the command if possible."
(progn (message "Skipping removed entry at %s" e)
(setq cntskip (1+ cntskip)))
(goto-char pos)
- (eval cmd)
+ (let (org-loop-over-headlines-in-active-region)
+ (eval cmd))
(setq org-agenda-bulk-marked-entries
(delete e org-agenda-bulk-marked-entries))
(setq cnt (1+ cnt))))