emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 a2b07f9: ; * etc/NEWS: Explain how to get back old behavior wit


From: Eli Zaretskii
Subject: emacs-27 a2b07f9: ; * etc/NEWS: Explain how to get back old behavior with --eval.
Date: Fri, 13 Mar 2020 06:33:55 -0400 (EDT)

branch: emacs-27
commit a2b07f9f11474dbcedd7cce39d2fa795bb23f692
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    ; * etc/NEWS: Explain how to get back old behavior with --eval.
---
 etc/NEWS | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index c7cca9c..6300319 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -360,6 +360,14 @@ its '--eval' command-line option), as well as in
 'lisp-interaction-mode' and 'ielm-mode', used in the "*scratch*" and
 "*ielm*" buffers.
 
+We envision that most Lisp code is already either written with
+lexical-binding in mind, or will work unchanged under
+lexical-binding.  If, for some reason, your code used in 'M-:' or
+'--eval' doesn't work as result of this change, either modify the code
+to work with lexical binding, or wrap it in an extra level of 'eval'.
+For example, --eval FORM becomes --eval "(eval 'FORM)" (note the extra
+quote in 'FORM).
+
 ---
 ** The new user option 'tooltip-resize-echo-area' avoids truncating
 tooltip text on GUI frames when tooltips are displayed in the echo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]