aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/variables.texi10
-rw-r--r--etc/NEWS11
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,
1187lexical binding is enabled if the @var{lexical} argument to 1187lexical 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
1190Lexical binding is also enabled in Lisp Interaction and IELM 1190@findex eval-expression@r{, and }lexical-binding
1191mode, used in the @file{*scratch*} and @file{*ielm*} buffers. 1191Lexical binding is also enabled in Lisp Interaction and IELM mode,
1192used in the @file{*scratch*} and @file{*ielm*} buffers, and also when
1193evaluating expressions via @kbd{M-:} (@code{eval-expression}) and when
1194processing 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
1197Emacs 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
diff --git a/etc/NEWS b/etc/NEWS
index 3332143dc23..2d719fb7a5b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -351,10 +351,13 @@ The default value is 30000, as the previously hard-coded threshold.
351answers, but also function keys like 'F1', character events such as 351answers, 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+++
355More specifically, 'lexical-binding' is now used for 'M-:', '--eval', 355** Lexical binding is now used by default when evaluating interactive Elisp.
356as well as in 'lisp-interaction-mode' and 'ielm-mode', used in the 356More specifically, 'lexical-binding' is now used by default for 'M-:'
357"*scratch*" and "*ielm*" buffers. 357and '--eval' (including in evaluations invoked from 'emacsclient' via
358its '--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