diff options
| author | Lars Magne Ingebrigtsen | 2011-07-15 14:57:20 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-15 14:57:20 +0200 |
| commit | 1d698799d3ffda0268176efb71d88165fe8e191f (patch) | |
| tree | 5f387c1fa33d29709d705b4809402ebc28cc3060 /src | |
| parent | 3073fc1414139dfa3c9f179242fae3ddcfbf7b5f (diff) | |
| download | emacs-1d698799d3ffda0268176efb71d88165fe8e191f.tar.gz emacs-1d698799d3ffda0268176efb71d88165fe8e191f.zip | |
`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
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lread.c | 8 |
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 @@ | |||
| 1 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * lread.c (syms_of_lread): Clarify that is isn't only | ||
| 4 | `eval-buffer' and `eval-defun' that's affected by | ||
| 5 | `lexical-binding' (bug#8460). | ||
| 6 | |||
| 1 | 2011-07-15 Eli Zaretskii <eliz@gnu.org> | 7 | 2011-07-15 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * xdisp.c (move_it_in_display_line_to): Fix vertical motion with | 9 | * 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'. */); | |||
| 4510 | staticpro (&Qlexical_binding); | 4510 | staticpro (&Qlexical_binding); |
| 4511 | DEFVAR_LISP ("lexical-binding", Vlexical_binding, | 4511 | DEFVAR_LISP ("lexical-binding", Vlexical_binding, |
| 4512 | doc: /* If non-nil, use lexical binding when evaluating code. | 4512 | doc: /* If non-nil, use lexical binding when evaluating code. |
| 4513 | This only applies to code evaluated by `eval-buffer' and `eval-region'. | 4513 | This applies to code evaluated by `eval-buffer' and `eval-region' and |
| 4514 | This variable is automatically set from the file variables of an interpreted | 4514 | other commands that call these functions, like `eval-defun' and |
| 4515 | Lisp file read using `load'. */); | 4515 | the like. |
| 4516 | This variable is automatically set from the file variables of an | ||
| 4517 | interpreted Lisp file read using `load'. */); | ||
| 4516 | Fmake_variable_buffer_local (Qlexical_binding); | 4518 | Fmake_variable_buffer_local (Qlexical_binding); |
| 4517 | 4519 | ||
| 4518 | DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list, | 4520 | DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list, |