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


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Juri Linkov <juri <at> linkov.net>
Cc: 50674 <at> debbugs.gnu.org
Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking
Date: Mon, 20 Sep 2021 00:42:54 -0700
Juri Linkov <juri <at> linkov.net> writes:

> I really see no difference from etc-authors-mode and e.g.
> etc-fstab-generic-mode defined in generic-x.el by define-generic-mode.
> And still it can be autoloaded like c++-mode-syntax-table used to be autoloaded.

That means that a user will see font-locking in some files, only if she
has first visited AUTHORS.  In a subsequent Emacs session, the user will
be surprised to see that the font-locking is no longer there.

IOW, I can agree to put it in generic-x.el, but only if we autoload some
other modes in there.  Such as the fstab mode.  Otherwise this makes no
sense to me.

A natural first step would be to make those modes load unconditionally,
but that proposal has been rejected; see my last two commits to
generic-x.el.  Perhaps it will be okay to load only some of the modes
unconditionally.

This would also have to be coupled with the necessary documentation
changes to generic-x.el, to explain that this file is not only about
`define-generic-mode'.

Personally, I'd rather create a new file for small modes than go down
this rabbit hole.  generic-x.el is hardly the best library name or
location.




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.