GNU bug report logs - #49278
28.0.50; Lisp Mode is for Common Lisp

Previous Next

Package: emacs;

Reported by: João Távora <joaotavora <at> gmail.com>

Date: Tue, 29 Jun 2021 18:07:02 UTC

Severity: normal

Found in version 28.0.50

Full log


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

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 49278 <at> debbugs.gnu.org
Subject: Re: bug#49278: 28.0.50; Lisp Mode is for Common Lisp
Date: Wed, 30 Jun 2021 17:50:03 +0100
On Wed, Jun 30, 2021 at 5:47 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> > Cc: joaotavora <at> gmail.com,  49278 <at> debbugs.gnu.org
> > Date: Wed, 30 Jun 2021 12:37:24 -0400
> >
> > > If they are similar enough, there's no need for such special places in
> > > the code.
> >
> > But then the "and other similar Foos" should be added to all our major
> > modes, since that's also true for them.  E.g. how 'bout:
> >
> >     @@ -2608,7 +2608,7 @@ c-c-menu
> >
> >      ;;;###autoload
> >      (define-derived-mode c-mode prog-mode "C"
> >     -  "Major mode for editing C code.
> >     +  "Major mode for editing C code and other similar languages.
>
> I don't mind.

Come on, don't do this. A major mode is only for editing programs
of a given language or other languages that are a superset of that
language.

Major mode for language X is only good for programs written for
X or for programs written for Y that happen to be compatible with
X. The concept of "similarity" is just too vague to use here.

João




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

Previous Next


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