[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 10c5835: Document changes in lexical-binding
From: |
Eli Zaretskii |
Subject: |
emacs-27 10c5835: Document changes in lexical-binding |
Date: |
Sat, 7 Mar 2020 06:34:38 -0500 (EST) |
branch: emacs-27
commit 10c58356e4e7ab1bae9b5fe1c1304e1f8dc82f83
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Document changes in lexical-binding
* doc/lispref/variables.texi (Using Lexical Binding): Document
that lexical-binding is now turned on by default in more cases.
* etc/NEWS: Fix wording of the NEWS entry about the above, and mark it
as fully documented.
---
doc/lispref/variables.texi | 10 ++++++++--
etc/NEWS | 11 +++++++----
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 33897bb..abcd4bb 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,
lexical binding is enabled if the @var{lexical} argument to
@code{eval} is non-@code{nil}. @xref{Eval}.
-Lexical binding is also enabled in Lisp Interaction and IELM
-mode, used in the @file{*scratch*} and @file{*ielm*} buffers.
+@findex eval-expression@r{, and }lexical-binding
+Lexical binding is also enabled in Lisp Interaction and IELM mode,
+used in the @file{*scratch*} and @file{*ielm*} buffers, and also when
+evaluating expressions via @kbd{M-:} (@code{eval-expression}) and when
+processing the @option{--eval} command-line options of Emacs
+(@pxref{Action Arguments,,, emacs, The GNU Emacs Manual}) and
+@command{emacsclient} (@pxref{emacsclient Options,,, emacs, The GNU
+Emacs Manual}).
@cindex special variables
Even when lexical binding is enabled, certain variables will
diff --git a/etc/NEWS b/etc/NEWS
index 3332143..2d719fb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -351,10 +351,13 @@ The default value is 30000, as the previously hard-coded
threshold.
answers, but also function keys like 'F1', character events such as
'C-M-h', and control characters like 'C-h'.
-** Lexical binding is now used when evaluating interactive Elisp forms.
-More specifically, 'lexical-binding' is now used for 'M-:', '--eval',
-as well as in 'lisp-interaction-mode' and 'ielm-mode', used in the
-"*scratch*" and "*ielm*" buffers.
++++
+** Lexical binding is now used by default when evaluating interactive Elisp.
+More specifically, 'lexical-binding' is now used by default for 'M-:'
+and '--eval' (including in evaluations invoked from 'emacsclient' via
+its '--eval' command-line option), as well as in
+'lisp-interaction-mode' and 'ielm-mode', used in the "*scratch*" and
+"*ielm*" buffers.
---
** The new user option 'tooltip-resize-echo-area' avoids truncating
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 10c5835: Document changes in lexical-binding,
Eli Zaretskii <=