Archiving: Fix bug when archiving all DONE children in odd-level file
commitfe9ac47afc736091fd8538faf929c9fec05a66d3
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 10 Dec 2009 08:23:58 +0000 (10 09:23 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 10 Dec 2009 08:23:58 +0000 (10 09:23 +0100)
tree377d9b82544738d31ea4b5207257f780443e1f91
parent0077ce97eaa953f047bd7920ef46d13527051845
Archiving: Fix bug when archiving all DONE children in odd-level file

Daniel S. Sinder writes:

> Here's an "odd" problem when I call org-archive-subtree with a
> prefix argument.  It seems that DONE subtrees are not found if
> I'm using odd level headlines.  I've tried this minimal test
> case:
>
> ---- begin: test case 1 ----
> #+STARTUP: hidestars odd
>
> * DONE Project 1
> *** DONE Task 1.1
> *** DONE Task 1.2
> ---- end:   test case 1 ----
>
> If I put the cursor on the level-1 headline and do C-u C-c C-x
> C-s, I am not prompted if I want to archive the level-3 children.
> However, if I remove 'odd' from the STARTUP line and move the
> level 3 headlines to level 2, so I have this:
>
> ---- begin: test case 1 ----
> #+STARTUP: hidestars
>
> * DONE Project 1
> ** DONE Task 1.1
> ** DONE Task 1.2
> ---- end:   test case 1 ----
>
> then a repeat of the same command (C-u C-c C-x C-s) correctly
> asks if I want to archive the two level-2 headlines.
>
> I've removed my personal customizations and the problem does not
> go away.
lisp/ChangeLog
lisp/org-archive.el