The behavior of `hack-local-variables' has recently been changed. (hack-local-variables t) used to check, until recently, whether a mode was specified in the -*- line. In current CVS, it checks whether a mode is specified in the -*- line _or_ in the local variables list. This incompatible change was made without updating the Elisp manual or mention in the NEWS. The patch below updates the Elisp manual. I can install if desired.
Since this is an incompatible change, should it also be mentioned in the NEWS? ===File ~/variables.texi-diff=============================== *** variables.texi 04 May 2005 09:37:03 -0500 1.60 --- variables.texi 07 May 2005 15:14:15 -0500 *************** *** 1804,1813 **** @code{enable-local-variables} into account. If the optional argument @var{mode-only} is [EMAIL PROTECTED], then all ! this function does is return @code{t} if the @[EMAIL PROTECTED] line ! specifies a mode and @code{nil} otherwise. It does not set the mode ! nor any other file local variable. It does not check whether a mode ! is specified in the local variables list at the end of the file. @end defun If a file local variable list could specify a function that would --- 1804,1812 ---- @code{enable-local-variables} into account. If the optional argument @var{mode-only} is [EMAIL PROTECTED], then all ! this function does is return @code{t} if the @[EMAIL PROTECTED] line or ! the local variables list specifies a mode and @code{nil} otherwise. ! It does not set the mode nor any other file local variable. @end defun If a file local variable list could specify a function that would ============================================================ _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel