GNU bug report logs -
#78467
30.1; evaluating isearch-forward to invisible text in org-mode breaks folding
Previous Next
Full log
Message #8 received at 78467 <at> debbugs.gnu.org (full text, mbox):
> From: Brett <brett.kerwin1 <at> gmail.com>
> Date: Fri, 16 May 2025 17:23:47 +0200
>
> Create a 3-line file named foobar.org containing exactly this:
>
> * foo
> ** bar
> baz
>
> (So the first character of the file is *.) Type
>
> emacs -Q foobar.org
>
> and type
>
> TAB M-: (isearch-forward) RET b RET
>
> (this folds everything, then calls the isearch-forward function, searches
> for b which will unfold everything and position the point on the second
> line). Now type TAB: this should fold the second heading only, but it will
> fold everything. And in fact you can try moving around and pressing TAB
> again as many times as you want: you will never be able to fold only the
> second heading again.
>
> Note that replacing
>
> M-: (isearch-forward)
>
> in the above sequence with
>
> M-x isearch-forward
>
> does NOT trigger the bug, instead it does produce the desired behaviour.
Please submit this to the Org developers first, thanks.
This bug report was last modified 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.