From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: [PATCH 5/5] Avoid conflict between bulk command and loop-over-headlines Date: Thu, 25 Aug 2011 06:25:34 +0200 Message-ID: <1314246334-5053-6-git-send-email-dmaus@ictsoc.de> References: <87obzpl3ec.fsf@gnu.org> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwRWA-0001im-2r for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:26:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwRW8-0002XU-QY for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:26:13 -0400 Received: from app1b.xlhost.de ([213.202.242.162]:59416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwRW8-0002XP-KC for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:26:12 -0400 In-Reply-To: <87obzpl3ec.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: David Maus * org-agenda.el (org-agenda-bulk-action): Bind `org-loop-over-headlines-in-active-region' to nil to avoid conflict with bulk command. --- lisp/org-agenda.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 07f3c12..bb0062d 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8306,7 +8306,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)))) -- 1.7.2.5