emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subversion of user chosen major mode by Emacs. [Was: My usage of ime


From: Eli Zaretskii
Subject: Re: Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.]
Date: Thu, 30 May 2024 08:25:39 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
> Date: Wed, 29 May 2024 21:32:05 -0400
> 
> > If somebody has specified -*- c-mode -*-, then they mean CC Mode.
> > If they don't, they should write -*- c-ts-mode -*- instead, or Emacs
> > should provide something like -*- c-generic-mode -*-.
> 
> I strongly disagree: file-local variables should describe the file's
> content, not the user's favorite environment to edit it.

How do we know that this was the intent?  It could be either of these
two, whether you like it or not.

If we want to know for sure, perhaps we need to introduce a new kind
of cookie, like 'force-mode: c++-mode' or somesuch.

> Otherwise, it's impossible for two users who have different preferences
> to share that file.

How do I force the use of a specific mode when more than one can
handle the file?  It is possible that the file relies on some features
specific to that mode, so such use cases are not outlandish.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]