[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Contradiction in Elisp page "File Local Variables"
From: |
Alan Mackenzie |
Subject: |
Contradiction in Elisp page "File Local Variables" |
Date: |
Fri, 13 Jun 2008 12:34:17 +0000 |
User-agent: |
Mutt/1.5.9i |
Hi, Emacs!
On the Elisp page "File Local Variables", it says this about the setting
`:all' for `enable-local-variables':
`:all'
Set all the variables and do not query.
Lower down on the page, it defines `ignored-local-variables':
This variable holds a list of variables that should not be given
local values by files. Any value specified for one of these
variables is completely ignored.
The two compete with eachother. The fine source code shows that
ignored-local-variables wins. Here's a patch to fix it:
2008-06-13 Alan Mackenzie <address@hidden>
* variables.texi (File Local Variables): State that
`ignored-local-variables' has a higher priority than `:all'.
*** variables.texi~ 2008-06-13 11:14:38.347148200 +0000
--- variables.texi 2008-06-13 12:30:31.316991576 +0000
***************
*** 1553,1559 ****
@item @code{:safe}
Set only the safe variables and do not query.
@item @code{:all}
! Set all the variables and do not query.
@item @code{nil}
Don't set any variables.
@item anything else
--- 1553,1560 ----
@item @code{:safe}
Set only the safe variables and do not query.
@item @code{:all}
! Set all the variables (except those in @code{ignored-local-variables})
! and do not query.
@item @code{nil}
Don't set any variables.
@item anything else
Any objections to this patch?
--
Alan Mackenzie (Nuremberg, Germany).
- Contradiction in Elisp page "File Local Variables",
Alan Mackenzie <=