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


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 54993 <at> debbugs.gnu.org
Subject: bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error
Date: Mon, 18 Apr 2022 10:40:04 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> > No, I get Fundamental mode -- which means no highlighting of headings,
>> > not auto-filling, not Flyspell, etc. -- all I have in Outline mode is
>> > suddenly gone.
>>
>> What's your suggestion for how this should work, then?  etc/NEWS in
>> auto-mode-alist?
>
> Either that, or private customizations.

FTR, I find the new emacs-news-mode very convenient. Hiding it in
private customizations would remove its convenience.

What about

--8<---------------cut here---------------start------------->8---
Local variables:
coding: utf-8
eval: (or (fboundp 'emacs-news-mode) (defalias 'emacs-news-mode 'outline-mode))
mode: emacs-news
paragraph-separate: "[ 	]*$"
end:
--8<---------------cut here---------------end--------------->8---

It requires you to confirm the eval form, but this is the price when you
edit etc/NEWS from master with an older Emacs version.

Best regards, Michael.




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

Previous Next


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