diff options
| author | Mattias EngdegÄrd | 2020-01-13 14:53:11 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-01-13 18:03:41 +0100 |
| commit | d645628e3cf6ebe5eaea3b40100bd77b9c823f8b (patch) | |
| tree | 6c8ce3cab0e654100329275709ca58b553d7c1bf /doc | |
| parent | c42198f78cbf7a75be67187a5de02e353a0918e8 (diff) | |
| download | emacs-d645628e3cf6ebe5eaea3b40100bd77b9c823f8b.tar.gz emacs-d645628e3cf6ebe5eaea3b40100bd77b9c823f8b.zip | |
Always use lexical-binding in lisp-interaction-mode (bug#38835)
* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
Set lexical-binding.
* lisp/startup.el (command-line, startup--get-buffer-create-scratch):
Don't set lexical-binding here.
* doc/lispref/variables.texi:
* etc/NEWS:
Make it clear that lisp-interaction-mode uses lexical-binding.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/variables.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 1ec97e2f3de..1e357754abe 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1187,6 +1187,9 @@ When evaluating Emacs Lisp code directly using an @code{eval} call, | |||
| 1187 | lexical binding is enabled if the @var{lexical} argument to | 1187 | lexical binding is enabled if the @var{lexical} argument to |
| 1188 | @code{eval} is non-@code{nil}. @xref{Eval}. | 1188 | @code{eval} is non-@code{nil}. @xref{Eval}. |
| 1189 | 1189 | ||
| 1190 | Lexical binding is also enabled in Lisp Interaction and IELM | ||
| 1191 | mode, used in the @file{*scratch*} and @file{*ielm*} buffers. | ||
| 1192 | |||
| 1190 | @cindex special variables | 1193 | @cindex special variables |
| 1191 | Even when lexical binding is enabled, certain variables will | 1194 | Even when lexical binding is enabled, certain variables will |
| 1192 | continue to be dynamically bound. These are called @dfn{special | 1195 | continue to be dynamically bound. These are called @dfn{special |