unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* mode in -*- line
@ 2005-05-07 21:42 Luc Teirlinck
  2005-05-08 22:45 ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Luc Teirlinck @ 2005-05-07 21:42 UTC (permalink / raw)


There are two things I noticed about modes in the -*- line.

Firstly, if normal-mode is called interactively, it unconditionally
processes all local variables in the -*- line and the local variables
list _except_ that it ignores a mode in the -*- line if
enable-local-variables is nil.  I guess that this exception is
unintentional.  If so, it is easy to fix.

Secondly, if I set enable-local-variables to 'ask and visit a file
with a mode in the -*- line, and then answer twice no to the questions
asking me whether I want to process local variables, then indeed no
local variables are processed, _except_ for the mode in the -*- line.
Is this intentional?  If not, this is a little bit trickier, because
the most obvious way to solve it would be to ask the user a third
question (in set-auto-mode) and two is already many.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-12 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-07 21:42 mode in -*- line Luc Teirlinck
2005-05-08 22:45 ` Richard Stallman
2005-05-09  2:40   ` Luc Teirlinck
2005-05-12  2:09   ` Luc Teirlinck
2005-05-12 14:54     ` Richard Stallman

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