unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: hack-local-variables
Date: Sat, 7 May 2005 17:32:28 -0500 (CDT)	[thread overview]
Message-ID: <200505072232.j47MWS524175@raven.dms.auburn.edu> (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
============================================================

             reply	other threads:[~2005-05-07 22:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-07 22:32 Luc Teirlinck [this message]
2005-05-08 22:45 ` hack-local-variables Richard Stallman
2005-05-09  2:36   ` hack-local-variables Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200505072232.j47MWS524175@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).