[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hack-local-variables
From: |
Luc Teirlinck |
Subject: |
hack-local-variables |
Date: |
Sat, 7 May 2005 17:32:28 -0500 (CDT) |
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 address@hidden, then all
! this function does is return @code{t} if the @address@hidden 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 address@hidden, then all
! this function does is return @code{t} if the @address@hidden 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
============================================================
- hack-local-variables,
Luc Teirlinck <=