all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 50674@debbugs.gnu.org
Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking
Date: Mon, 20 Sep 2021 18:24:32 +0300	[thread overview]
Message-ID: <874kafqx57.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmmGieG-J+Gv-eGecT6Pmr3-qDhS02uqR8XEtCvixUag9Q@mail.gmail.com> (Stefan Kangas's message of "Mon, 20 Sep 2021 11:14:01 +0200")

> Thinking about this a bit more, what is the problem with just keeping
> this in its own file?  It is fairly self-contained and not really
> related to anything else.  If the worry is that it will clutter
> lisp/textmodes, perhaps we could add a new directory where such
> "small" modes could go.

It really will clutter lisp/textmodes.  For the same reasoning
all modes in generic-x.el should be moved to separate files
that makes no sense.

So the current situation is following: we have generic-x.el for such
small modes like etc-passwd-generic-mode and etc-authors-mode.
But the problem is that modes in generic-x.el are not autoloaded.
I don't understand why visiting /etc/passwd doesn't highlight it
properly when etc-passwd-generic-mode is available for this file?
But I see no problem to autoload all available modes from generic-x.el.

> 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.

I agree that only some should be loaded unconditionally.  For example,
we should not use modes for filename regexps that are not specific,
such as '("alias\\'") and '("inventory\\'") that has too wide coverage
to produce false matches.  OTOH, autoloaded modes should be enabled
by default for "/etc/passwd", "/etc/fstab", "emacs.*/etc/AUTHORS\\'"
that has no problem of mismatching.





  reply	other threads:[~2021-09-20 15:24 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 14:12 bug#50674: Major mode for etc/AUTHORS with basic font-locking Stefan Kangas
2021-09-19 15:19 ` Lars Ingebrigtsen
2021-09-19 16:25 ` Eli Zaretskii
2021-09-19 21:58   ` Stefan Kangas
2021-09-21 19:54     ` Stefan Kangas
2021-09-19 16:33 ` Juri Linkov
2021-09-19 17:38   ` Stefan Kangas
2021-09-20  6:41     ` Juri Linkov
2021-09-20  7:42       ` Stefan Kangas
2021-09-20  9:14         ` Stefan Kangas
2021-09-20 15:24           ` Juri Linkov [this message]
2021-09-21  6:12             ` Lars Ingebrigtsen
2021-09-21  6:25               ` Eli Zaretskii
2021-09-21  6:28                 ` Lars Ingebrigtsen
2021-09-21  7:57                   ` Stefan Kangas
2021-09-21  8:36                   ` Eli Zaretskii
2021-09-21  8:58                     ` Stefan Kangas
2021-09-21  9:24                       ` Eli Zaretskii
2021-09-21 11:18                         ` Stefan Kangas
2021-09-21 11:25                           ` Eli Zaretskii
2021-09-21  8:28               ` Stefan Kangas
2021-09-21 16:51                 ` Lars Ingebrigtsen
2021-09-21 17:56                 ` Lars Ingebrigtsen
2021-09-21 18:33                   ` Stefan Kangas
2021-09-21 18:41                     ` Juri Linkov
2021-09-21 18:56                       ` Eli Zaretskii
2021-09-21 19:22                       ` Stefan Kangas
2021-09-21 17:28 ` Juri Linkov
2021-09-21 18:33   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kafqx57.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50674@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.