GNU bug report logs - #50674
Major mode for etc/AUTHORS with basic font-locking

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sun, 19 Sep 2021 14:13:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50674 <at> debbugs.gnu.org
Subject: Re: bug#50674: Major mode for etc/AUTHORS with basic font-locking
Date: Tue, 21 Sep 2021 20:28:01 +0300
> diff --git a/lisp/files.el b/lisp/files.el
> index b113ff32f2..171b69e01e 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -3006,7 +3006,8 @@ auto-mode-alist
>       ("\\.xcf\\'" . image-mode)
>       ("\\.xmp\\'" . image-mode)
>       ("\\.xwd\\'" . image-mode)
> -     ("\\.yuv\\'" . image-mode)))
> +     ("\\.yuv\\'" . image-mode)
> +     ("emacs.*/etc/AUTHORS\\'" . etc-authors-mode)))

I think cluttering auto-mode-alist is worse than cluttering lisp/textmodes
because you can add ‘mode: etc-authors’ to Local Variables of etc/AUTHORS.




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

Previous Next


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