GNU bug report logs - #58928
29.0.50; overlays in org-mode are disrupted after call `org-capture`

Previous Next

Package: emacs;

Reported by: Eli Qian <eli.q.qian <at> gmail.com>

Date: Mon, 31 Oct 2022 15:00:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #71 received at 58928 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eason Huang <aqua0210 <at> foxmail.com>
Cc: Ihor Radchenko <yantar92 <at> posteo.net>, 58928 <at> debbugs.gnu.org,
 Gerd Möllmann <gerd.moellmann <at> gmail.com>,
 Matt Armstrong <matt <at> rfc20.org>, Eli Zaretskii <eliz <at> gnu.org>,
 Eli Qian <eli.q.qian <at> gmail.com>
Subject: Re: bug#58928: 29.0.50; overlays in org-mode are disrupted after
 call `org-capture`
Date: Thu, 03 Nov 2022 23:47:07 -0400
> 4. Now the .notes buffer is like this:
> * Tasks
> ** TODO test1...
> 5. Try step 2 again, now you will see the issue. Now the .notes buffer looks like this:
> * Tasks
> ** TODO test1...TODO
>   [2022-11-03 Thu]
>   test1

With the latest changes I pushed, at the end of step 5 I see only:

    ** TODO test1...

This doesn't look completely right (the "..." hides both the "test1"
todo and the subsequent one), but I see exactly the same when
I try it on Emacs-28, so are you sure it's something that changed with
the new overlays code?

This behavior is different from the behavior I see in Emacs-27, where
I get:

    ** TODO test1...
    ** TODO test2
      [2022-11-03 Thu]

but the difference comes from where the invisible overlay is placed:
when the `.notes` buffer just contains:

    * Tasks
    ** TODO test1
      [2022-11-03 Thu]

if you hit TAB with cursor on the TODO line, in both Emacs-28/29 and
Emacs-27 I see:

    * Tasks
    ** TODO test1...

but if I `M->` to go to the end of buffer, I see that in Emacs-27, the
final LF character is not invisible (i.e. my cursor is displayed below
the "**") whereas with Emacs-28/29 my cursor ends up right after the
"...".


        Stefan





This bug report was last modified 2 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.