From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking Date: Tue, 21 Sep 2021 20:28:01 +0300 Organization: LINKOV.NET Message-ID: <87y27p26ty.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 50674@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 19:33:35 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSjeB-0009tF-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 19:33:35 +0200 Original-Received: from localhost ([::1]:49582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSje9-0000K0-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 13:33:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSjde-00081r-VB for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 13:33:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSjde-0006lv-O4 for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 13:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSjde-0003Im-Kh for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50674 X-GNU-PR-Package: emacs Original-Received: via spool by 50674-submit@debbugs.gnu.org id=B50674.163224553211351 (code B ref 50674); Tue, 21 Sep 2021 17:33:02 +0000 Original-Received: (at 50674) by debbugs.gnu.org; 21 Sep 2021 17:32:12 +0000 Original-Received: from localhost ([127.0.0.1]:47882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSjcq-0002wj-1I for submit@debbugs.gnu.org; Tue, 21 Sep 2021 13:32:12 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:60029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSjcn-0002pm-Fk for 50674@debbugs.gnu.org; Tue, 21 Sep 2021 13:32:10 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 8642720000F; Tue, 21 Sep 2021 17:32:02 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Sun, 19 Sep 2021 07:12:40 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215006 Archived-At: > 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.