[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] agenda bulk refile error

From: Bernt Hansen
Subject: [Orgmode] agenda bulk refile error
Date: Tue, 04 Aug 2009 14:00:06 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Every so often I run into a situation where bulk refiling doesn't work

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 #<marker at 297156 in norang.org>"

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

* 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 #<marker at 
297156 in norang.org>")
  signal(error ("Cannot find entry for marker #<marker at 297156 in 
  error("Cannot find entry for marker %s" #<marker at 297156 in norang.org>)
  (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))

I've since changed my refile custom view to only show level 1 tasks to
avoid this problem.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]