GNU bug report logs - #21710
25.0.50; self-insert-command before a folded outline inserts after the outline

Previous Next

Package: emacs;

Reported by: Oleh Krehel <ohwoeowho <at> gmail.com>

Date: Mon, 19 Oct 2015 15:16:02 UTC

Severity: normal

Found in version 25.0.50

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 21710 <at> debbugs.gnu.org, ohwoeowho <at> gmail.com
Subject: Re: bug#21710: 25.0.50;
 self-insert-command before a folded outline inserts after the outline
Date: Sun, 15 Aug 2021 20:32:46 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sun, 15 Aug 2021 19:01:42 +0200
> Cc: 21710 <at> debbugs.gnu.org
> 
> Oleh Krehel <ohwoeowho <at> gmail.com> writes:
> 
> > To reproduce with "emacs -Q", create a file ~/outline-test with the
> > following contents:
> >
> > * foo
> > some text
> > * bar
> > some text
> >
> > Open the file, move to start, "M-x" `outline-minor-mode',
> > "M-x" `outline-hide-sublevels'.
> >
> > Move to the end of bar and insert "tt" - it works correctly.
> >
> > But move to the end of foo and insert "tt": here's what it looks like
> > ("|" is the point):
> >
> > * foo...t|
> > * bartt...
> >
> > Here's the full text after "M-x" `outline-show-all':
> >
> > * foot
> > some textt
> > * bartt
> > some text
> 
> (I'm going through old bug reports that unfortunately weren't
> resolved at the time.)
> 
> I'm not seeing quite what you're seeing here in Emacs 26.1 or 28.  I'm getting:
> 
> * foo...ttttt|
> * bar...

I get in Emacs 28 exactly what the OP describes.

But isn't that expected, given the way outline-minor-mode uses the
invisible property?

> On the other hand, I'm not sure quite what it's supposed to do if you
> type after the dots.

He was typing _before_ the dots.  He said "move to the end of foo".




This bug report was last modified 3 years and 308 days ago.

Previous Next


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