diff options
| -rw-r--r-- | doc/lispref/variables.texi | 10 | ||||
| -rw-r--r-- | etc/NEWS | 11 |
2 files changed, 15 insertions, 6 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 33897bb6336..abcd4bbd0f7 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1187,8 +1187,14 @@ 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 | 1190 | @findex eval-expression@r{, and }lexical-binding |
| 1191 | mode, used in the @file{*scratch*} and @file{*ielm*} buffers. | 1191 | Lexical binding is also enabled in Lisp Interaction and IELM mode, |
| 1192 | used in the @file{*scratch*} and @file{*ielm*} buffers, and also when | ||
| 1193 | evaluating expressions via @kbd{M-:} (@code{eval-expression}) and when | ||
| 1194 | processing the @option{--eval} command-line options of Emacs | ||
| 1195 | (@pxref{Action Arguments,,, emacs, The GNU Emacs Manual}) and | ||
| 1196 | @command{emacsclient} (@pxref{emacsclient Options,,, emacs, The GNU | ||
| 1197 | Emacs Manual}). | ||
| 1192 | 1198 | ||
| 1193 | @cindex special variables | 1199 | @cindex special variables |
| 1194 | Even when lexical binding is enabled, certain variables will | 1200 | Even when lexical binding is enabled, certain variables will |
| @@ -351,10 +351,13 @@ The default value is 30000, as the previously hard-coded threshold. | |||
| 351 | answers, but also function keys like 'F1', character events such as | 351 | answers, but also function keys like 'F1', character events such as |
| 352 | 'C-M-h', and control characters like 'C-h'. | 352 | 'C-M-h', and control characters like 'C-h'. |
| 353 | 353 | ||
| 354 | ** Lexical binding is now used when evaluating interactive Elisp forms. | 354 | +++ |
| 355 | More specifically, 'lexical-binding' is now used for 'M-:', '--eval', | 355 | ** Lexical binding is now used by default when evaluating interactive Elisp. |
| 356 | as well as in 'lisp-interaction-mode' and 'ielm-mode', used in the | 356 | More specifically, 'lexical-binding' is now used by default for 'M-:' |
| 357 | "*scratch*" and "*ielm*" buffers. | 357 | and '--eval' (including in evaluations invoked from 'emacsclient' via |
| 358 | its '--eval' command-line option), as well as in | ||
| 359 | 'lisp-interaction-mode' and 'ielm-mode', used in the "*scratch*" and | ||
| 360 | "*ielm*" buffers. | ||
| 358 | 361 | ||
| 359 | --- | 362 | --- |
| 360 | ** The new user option 'tooltip-resize-echo-area' avoids truncating | 363 | ** The new user option 'tooltip-resize-echo-area' avoids truncating |