[Top][All Lists]

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

mode in -*- line

From: Luc Teirlinck
Subject: mode in -*- line
Date: Sat, 7 May 2005 16:42:26 -0500 (CDT)

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.



reply via email to

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