From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: agenda bulk refile error Date: Tue, 04 Aug 2009 14:00:06 -0400 Message-ID: <878whztq6x.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYOJ6-0000ag-5D for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 14:00:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYOJ1-0000Wj-GH for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 14:00:14 -0400 Received: from [199.232.76.173] (port=49919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYOJ1-0000We-6i for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 14:00:11 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:60600) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYOJ0-0007UK-OC for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 14:00:10 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MYOIy-000Gs3-NL for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 18:00:09 +0000 Received: from gollum.intra.norang.ca (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id n74I06h9003303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 4 Aug 2009 14:00:07 -0400 Received: from gollum.intra.norang.ca (localhost [127.0.0.1]) by gollum.intra.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id n74I06ia008009 for ; Tue, 4 Aug 2009 14:00:06 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Every so often I run into a situation where bulk refiling doesn't work anymore. I currently have 15 items in my refile.org file that I want to refile to other locations. I marked a few of them and bulk refiled them just fine. Then I marked a few more and B r fails with "Cannot find entry for marker #" I think this happens when I mark multiple tasks in the same subtree (i.e. the parent and a sibling) and refile both to the same location. After that it gets confused. If I have a task like this in refile.org #+FILETAGS: REFILE * Test ** Test 2 and run a tags match on REFILE I see both tasks. Mark both with m in the agenda and B r to some other location. It refiles the first (and this moves the sibling too) and then it's broken after that. I get the following backtrace Debugger entered--Lisp error: (error "Cannot find entry for marker #") signal(error ("Cannot find entry for marker #")) error("Cannot find entry for marker %s" #) (or (text-property-any (point-min) (point-max) (quote org-hd-marker) e) (error "Cannot find entry for marker %s" e)) (goto-char (or (text-property-any ... ... ... e) (error "Cannot find entry for marker %s" e))) (while (setq e (pop entries)) (goto-char (or ... ...)) (eval cmd) (setq org-agenda-bulk-marked-entries (delete e org-agenda-bulk-marked-entries)) (setq cnt (1+ cnt))) (let* ((action ...) (entries ...) cmd rfloc state e tag (cnt 0)) (cond (... ...) (... ...) (... ... ... ...) (... ... ...) (... ... ...) (... ...) (t ...)) (while (setq e ...) (goto-char ...) (eval cmd) (setq org-agenda-bulk-marked-entries ...) (setq cnt ...)) (setq org-agenda-bulk-marked-entries nil) (org-agenda-bulk-remove-all-marks) (message "Acted on %d entries" cnt)) org-agenda-bulk-action() call-interactively(org-agenda-bulk-action) I've since changed my refile custom view to only show level 1 tasks to avoid this problem. -Bernt