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


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 non-@code{nil}, then all
! this function does is return @code{t} if the @w{@samp{-*-}} 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 non-@code{nil}, then all
! this function does is return @code{t} if the @w{@samp{-*-}} 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
============================================================

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

end of thread, other threads:[~2005-05-09  2:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-07 22:32 hack-local-variables Luc Teirlinck
2005-05-08 22:45 ` hack-local-variables Richard Stallman
2005-05-09  2:36   ` hack-local-variables Luc Teirlinck

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