summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-15 14:57:20 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-15 14:57:20 +0200
commit1d698799d3ffda0268176efb71d88165fe8e191f (patch)
tree5f387c1fa33d29709d705b4809402ebc28cc3060
parent3073fc1414139dfa3c9f179242fae3ddcfbf7b5f (diff)
downloademacs-1d698799d3ffda0268176efb71d88165fe8e191f.tar.gz
`lexical-binding' doc clarification
* lread.c (syms_of_lread): Clarify that is isn't only `eval-buffer' and `eval-defun' that's affected by `lexical-binding'. Fixes: debbugs:8460
-rw-r--r--src/ChangeLog6
-rw-r--r--src/lread.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3bb02a71865..8ef3efa8a52 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * lread.c (syms_of_lread): Clarify that is isn't only
+ `eval-buffer' and `eval-defun' that's affected by
+ `lexical-binding' (bug#8460).
+
2011-07-15 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (move_it_in_display_line_to): Fix vertical motion with
diff --git a/src/lread.c b/src/lread.c
index 6cb217a21c6..7dd566dc173 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4510,9 +4510,11 @@ to load. See also `load-dangerous-libraries'. */);
staticpro (&Qlexical_binding);
DEFVAR_LISP ("lexical-binding", Vlexical_binding,
doc: /* If non-nil, use lexical binding when evaluating code.
-This only applies to code evaluated by `eval-buffer' and `eval-region'.
-This variable is automatically set from the file variables of an interpreted
- Lisp file read using `load'. */);
+This applies to code evaluated by `eval-buffer' and `eval-region' and
+other commands that call these functions, like `eval-defun' and
+the like.
+This variable is automatically set from the file variables of an
+interpreted Lisp file read using `load'. */);
Fmake_variable_buffer_local (Qlexical_binding);
DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list,