From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acorallo@gnu.org, dmitry@gutov.dev, monnier@iro.umontreal.ca,
emacs-devel@gnu.org
Subject: Re: Subversion of user chosen major mode by Emacs.
Date: Thu, 30 May 2024 11:02:13 +0000 [thread overview]
Message-ID: <ZlhctSMdZ9X7fQZp@ACM> (raw)
In-Reply-To: <86ed9jsxjj.fsf@gnu.org>
Hello, Eli.
On Thu, May 30, 2024 at 08:01:36 +0300, Eli Zaretskii wrote:
> > Date: Wed, 29 May 2024 19:59:23 +0000
> > Cc: Dmitry Gutov <dmitry@gutov.dev>,
> > Stefan Monnier <monnier@iro.umontreal.ca>, Eli Zaretskii <eliz@gnu.org>,
> > emacs-devel@gnu.org
> > From: Alan Mackenzie <acm@muc.de>
> > My intention was to make other maintainers, including he who wrote it,
> > aware of what was at stake.
> We are aware.
> > There's a very old principle in Emacs not to interfere in user set
> > options.
> auto-mode-alist is NOT a user option, never was. Emacs has been
> tweaking its value for users' benefits for eons, and CC Mode does that
> as well.
> major-mode-remap-alist _is_ a user option, which is one reason why
> solutions proposed back when Emacs 29 was in the works that involved
> changing the value of major-mode-remap-alist were unacceptable to me.
> The changes installed by Stefan don't touch major-mode-remap-alist,
> probably for the same reason; instead, they introduce a new internal
> variable and tweak that.
> > That's what I see being violated here.
> No, it is not.
My decision to use C Mode rather than c-ts-mode I see as a user option
exercised by me. Two days ago, that choice of mine was usurped, when
Emacs decided that rather than c-mode, I really wanted c-ts-mode.
The point here is we have identity theft. The symbol c-mode is the name
of CC Mode's mode for C. It has no other name. The symbol belongs to
CC Mode. But others have decided that c-mode is to have additional
meanings, diluting its primary meaning. It is as though somebody
decided that "Eli Zaretskii", rather than meaning you, meant "a generic
Emacs maintainer". You would not like it.
Anyhow, I see a way forward. I will amend CC Mode also to make entries
in major-mode-remap-defaults. This would appear to be in the spirit of
that undocumented variable. It doesn't feel ideal, though.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2024-05-30 11:02 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 10:53 My usage of imenu is broken Alan Mackenzie
2024-05-28 11:34 ` Eli Zaretskii
2024-05-28 13:57 ` Alan Mackenzie
2024-05-28 18:29 ` Eli Zaretskii
2024-05-28 20:46 ` Alan Mackenzie
2024-05-28 21:28 ` Stefan Monnier
2024-05-29 6:04 ` Juri Linkov
2024-05-29 11:31 ` Eli Zaretskii
2024-05-29 5:38 ` Yuan Fu
2024-05-28 21:55 ` Stefan Monnier
2024-05-29 11:16 ` Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.] Alan Mackenzie
2024-05-29 11:43 ` Dmitry Gutov
2024-05-29 12:51 ` Subversion of user chosen major mode by Emacs Alan Mackenzie
2024-05-29 16:08 ` Dmitry Gutov
2024-05-29 16:38 ` Eli Zaretskii
2024-05-29 17:56 ` Dmitry Gutov
2024-05-29 19:22 ` Alan Mackenzie
2024-05-29 19:45 ` Andrea Corallo
2024-05-29 19:59 ` Alan Mackenzie
2024-05-30 5:01 ` Eli Zaretskii
2024-05-30 11:02 ` Alan Mackenzie [this message]
2024-05-29 22:10 ` Dmitry Gutov
2024-05-30 5:51 ` Eli Zaretskii
2024-05-30 5:44 ` Eli Zaretskii
2024-05-29 12:41 ` Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.] Eli Zaretskii
2024-05-29 13:29 ` Subversion of user chosen major mode by Emacs Alan Mackenzie
2024-05-29 14:20 ` Eli Zaretskii
2024-05-29 15:04 ` Stefan Monnier
2024-05-29 19:17 ` Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.] Eli Zaretskii
2024-05-30 1:32 ` Stefan Monnier
2024-05-30 5:25 ` Eli Zaretskii
2024-05-30 7:39 ` Po Lu
2024-05-30 7:53 ` Eli Zaretskii
2024-05-30 14:18 ` Stefan Monnier
2024-05-30 14:33 ` Po Lu
2024-05-30 15:08 ` Stefan Monnier
2024-05-30 14:56 ` Eli Zaretskii
2024-05-30 15:12 ` Stefan Monnier
2024-05-30 15:29 ` Alan Mackenzie
2024-05-30 18:30 ` Stefan Monnier
2024-05-30 16:06 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZlhctSMdZ9X7fQZp@ACM \
--to=acm@muc.de \
--cc=acorallo@gnu.org \
--cc=dmitry@gutov.dev \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).