org-mode/lisp
Carsten Dominik babd053bd6 Fix bulk agenda processing with parents and children in the loop
Bernt Hansen writes:

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

Indeed the happens because, when a parent gets refiled or
achieved, any entries corresponding to its children are
removed from the agenda.

We address this issue by

- sorting the markers, to make sure parents will be handled
  before children

- No longer throwing an error when a bulk action entry no
  longer is present in the agenda - most likely it was taken
  care of together with its parent.
2009-08-04 22:46:08 +02:00
..
ChangeLog Fix bulk agenda processing with parents and children in the loop 2009-08-04 22:46:08 +02:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Fix bulk agenda processing with parents and children in the loop 2009-08-04 22:46:08 +02:00
org-archive.el Keep compiler happy 2009-07-20 09:16:28 +02:00
org-ascii.el Export: General mechanism for local settings 2009-07-06 17:00:03 +02:00
org-attach.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-bbdb.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-bibtex.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-clock.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-colview-xemacs.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-colview.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-compat.el New minor mode org-indent-mode 2009-08-03 06:24:24 +02:00
org-docbook.el Export: General mechanism for local settings 2009-07-06 17:00:03 +02:00
org-exp-blocks.el Fix bug. 2009-06-27 09:22:00 +02:00
org-exp.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-faces.el Fix some face docstrings. 2009-06-28 20:28:13 +02:00
org-feed.el Feeds: Fix org-feed when retrieve-method is curl or wget 2009-06-30 19:39:17 +02:00
org-footnote.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-gnus.el Don't use next-line in lisp code if possible 2009-07-07 15:14:05 +02:00
org-html.el Fix parenthesis error in footnote export code 2009-08-04 16:46:34 +02:00
org-icalendar.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-id.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-indent.el More minor fixes to org-indent-mode 2009-08-03 10:25:11 +02:00
org-info.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-inlinetask.el Keep compiler happy 2009-07-20 09:16:28 +02:00
org-irc.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-jsinfo.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-latex.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-list.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-mac-message.el Fix problems in org-mac-message.el 2009-07-20 09:09:42 +02:00
org-macs.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-mew.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-mhe.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-mouse.el New minor mode org-indent-mode 2009-08-03 06:24:24 +02:00
org-plot.el Fixed premature deletion of data when scripting org-plot. 2009-07-17 19:02:01 +02:00
org-protocol.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-publish.el Make publishing a little less noisy 2009-07-08 10:09:05 +02:00
org-remember.el New option: org-remember-delete-empty-lines-at-end 2009-07-18 10:09:40 +02:00
org-rmail.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-src.el Fix white-space errors 2009-08-03 17:30:30 +02:00
org-table.el Allow export of tables from temporary buffers without a file 2009-08-03 07:42:40 +02:00
org-timer.el Minor fix 2009-08-04 13:10:36 +02:00
org-vm.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-w3m.el New minor mode org-indent-mode 2009-08-03 06:24:24 +02:00
org-wl.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org-xoxo.el Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
org.el Minor refile fixes 2009-08-04 18:38:14 +02:00