GNU bug report logs - #54993
28.1; Editing etc/NEWS on master with Emacs 28 signals an error

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sun, 17 Apr 2022 17:45:02 UTC

Severity: wishlist

Found in version 28.1

Full log


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

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 54993 <at> debbugs.gnu.org
Subject: Re: bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28
 signals an error
Date: Wed, 20 Apr 2022 08:22:44 +0200
Juri Linkov <juri <at> linkov.net> writes:

>>> there are different outline header colors between Emacs 28 and 29
>>> because of different outline levels.  The additional level comes
>>> from the space character at the end of outline-regexp "^\\*+ ".
>>
>> I wanted to avoid having stuff like
>>
>> ** New thing for help buffers.
>> *Help* buffers can be etc...
>>
>> triggering an outline thing on the second line.  Is there a way to do
>> that without including the space in outline-regexp?
>
> I see only 1 way: to set buffer-local outline-level where to subtract 1.

FWIW, this is exactly what org-outline-level does, since Org also sets
outline-regexp to "\\*+ ".

(NB: IIUC from outline-regexp's docstring, it is not necessary to anchor
the regexp with "^")




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

Previous Next


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