summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-01-25 22:30:49 -0800
committerGlenn Morris <rgm@gnu.org>2012-01-25 22:30:49 -0800
commit48da73922734c056f48ed3cd675a97369ac025ea (patch)
treed3a266c269057b18509c542e134025e50c99f2ed /src/lread.c
parente43273eff03ad9e6c7564057b35a5bf6810935f2 (diff)
downloademacs-48da73922734c056f48ed3cd675a97369ac025ea.tar.gz
Doc fix for lexical-binding being in line one.
Ref http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00543.html * doc/lispref/variables.texi (Using Lexical Binding): Mention that lexical-binding should be set in the first line. * src/lread.c (syms_of_lread): Doc fix. * lisp/emacs-lisp/tabulated-list.el, lisp/progmodes/f90.el: Move lexical-binding file-local to line one. * etc/NEWS: lexical-binding should be ine the first line.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index 23cda8eed6d..353f4a3064d 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4595,7 +4595,8 @@ to load. See also `load-dangerous-libraries'. */);
Non-nil means that the code in the current buffer should be evaluated
with lexical binding.
This variable is automatically set from the file variables of an
-interpreted Lisp file read using `load'. */);
+interpreted Lisp file read using `load'. Unlike other file local
+variables, this must be set in the first line of a file. */);
Fmake_variable_buffer_local (Qlexical_binding);
DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list,