Mercurial > emacs
comparison lispref/variables.texi @ 62191:a89efed2c3f0
(File Local Variables): `(hack-local-variables t)' now also checks
whether a mode is specified in the local variables list.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Mon, 09 May 2005 01:24:32 +0000 |
parents | bc3a702b646e |
children | 69b2883d6502 62afea0771d8 |
comparison
equal
deleted
inserted
replaced
62190:77d48ce87d57 | 62191:a89efed2c3f0 |
---|---|
1802 function does not look for the @samp{mode:} local variable in the | 1802 function does not look for the @samp{mode:} local variable in the |
1803 @w{@samp{-*-}} line. @code{set-auto-mode} does that, also taking | 1803 @w{@samp{-*-}} line. @code{set-auto-mode} does that, also taking |
1804 @code{enable-local-variables} into account. | 1804 @code{enable-local-variables} into account. |
1805 | 1805 |
1806 If the optional argument @var{mode-only} is non-@code{nil}, then all | 1806 If the optional argument @var{mode-only} is non-@code{nil}, then all |
1807 this function does is return @code{t} if the @w{@samp{-*-}} line | 1807 this function does is return @code{t} if the @w{@samp{-*-}} line or |
1808 specifies a mode and @code{nil} otherwise. It does not set the mode | 1808 the local variables list specifies a mode and @code{nil} otherwise. |
1809 nor any other file local variable. It does not check whether a mode | 1809 It does not set the mode nor any other file local variable. |
1810 is specified in the local variables list at the end of the file. | |
1811 @end defun | 1810 @end defun |
1812 | 1811 |
1813 If a file local variable list could specify a function that would | 1812 If a file local variable list could specify a function that would |
1814 be called later, or an expression that would be executed later, simply | 1813 be called later, or an expression that would be executed later, simply |
1815 visiting a file could take over your Emacs. To prevent this, Emacs | 1814 visiting a file could take over your Emacs. To prevent this, Emacs |