Fix bug with sparse trees and ARCHIVE tag
commit15eb6dba42e3b0fc0c9a8062ef2a4933c697941b
authorCarsten Dominik <carsten.dominik@gmail.com>
Tue, 3 Nov 2009 14:36:06 +0000 (3 15:36 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 3 Nov 2009 14:36:06 +0000 (3 15:36 +0100)
tree336393b8efe0105e8de6f087fa7b06148d23784e
parent5a24f6c9d2f0b479f0c7970607ccbddf00feb861
Fix bug with sparse trees and ARCHIVE tag

Chris Randle writes:

> I've just noticed that creating a sparse tree with `C-c / r' is
> not displaying matches in my org file. It hasn't always been this
> way, I *think* things were working OK around 6.29, but it's hard
> to be sure.
>
> I've managed to pare my org file down to a few lines that
> demonstrate the problem
>
> ===============================
>
> * Customers
> ** Customer A
> *** Billing
> **** Support during September     :ARCHIVE:
> ** Customer B
>   07964-xxxxxx
>
> *** Problem with Laptop
> ** Customer C
> *** Current Details
>
> *** Test of 07968 showing up
> ** Customer D
>   01673-xxxxxx
>   07968-xxxxxx
>
> *** Laptop slowdown fix
>    spoolsv.exe at 99%
>
> ===================================
>
> Setting a sparse tree by regexp 0796[48] returns "3 match(es) for
> regexp 0796[48]", but the tree doesn't expand at the hit
> locations. If I manually expand the tree at the locations of the
> hits, the results are highlighted. It makes no difference if the
> hits are in a headline or in notes beneath a headline.
>
> Remove the ARCHIVE tag from the "Support during September"
> headline with `C-c C-x a' and redo the sparse tree. Everything
> now appears expanded as I'd expect.

Hmm, maybe the outline behavior of hide-subtree has changed???
Anyway, we now just use our own function for this.
lisp/ChangeLog
lisp/org.el