From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: 30078@debbugs.gnu.org
Subject: bug#30078: 27.0.50; Use lexical-binding for M-:
Date: Thu, 11 Jan 2018 11:36:54 -0500 [thread overview]
Message-ID: <jwvtvvs9wt5.fsf@iro.umontreal.ca> (raw)
Package: Emacs
Version: 27.0.50
I think we should slowly move towards making lexical-binding the default
and we could start by making M-: always use lexical binding.
WDYT?
Stefan
diff --git a/lisp/simple.el b/lisp/simple.el
index 4c69e0f6ff..fa31ef9f0f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1608,12 +1608,12 @@ eval-expression
(eval-expression-get-print-arguments current-prefix-arg)))
(if (null eval-expression-debug-on-error)
- (push (eval exp lexical-binding) values)
+ (push (eval exp t) values)
(let ((old-value (make-symbol "t")) new-value)
;; Bind debug-on-error to something unique so that we can
;; detect when evalled code changes it.
(let ((debug-on-error old-value))
- (push (eval (macroexpand-all exp) lexical-binding) values)
+ (push (eval (macroexpand-all exp) t) values)
(setq new-value debug-on-error))
;; If evalled code has changed the value of debug-on-error,
;; propagate that change to the global binding.
next reply other threads:[~2018-01-11 16:36 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 16:36 Stefan Monnier [this message]
2018-01-11 20:58 ` bug#30078: 27.0.50; Use lexical-binding for M-: Michael Heerdegen
2018-01-12 14:58 ` Stefan Monnier
2018-01-12 16:12 ` Stefan Monnier
2018-01-12 16:53 ` Glenn Morris
2018-01-12 17:23 ` Michael Heerdegen
2018-01-12 18:47 ` Stefan Monnier
2018-01-12 19:35 ` Michael Heerdegen
2018-01-13 17:58 ` Stefan Monnier
2018-01-12 18:34 ` Eli Zaretskii
2018-01-12 18:49 ` Stefan Monnier
2018-01-12 18:55 ` Eli Zaretskii
2018-01-12 19:06 ` Stefan Monnier
2018-01-12 20:03 ` Eli Zaretskii
2018-01-12 20:33 ` Noam Postavsky
2018-01-12 20:55 ` Michael Heerdegen
2018-01-12 21:04 ` Eli Zaretskii
2018-01-12 21:11 ` Michael Heerdegen
2018-01-13 17:50 ` Luis Gerhorst
2018-01-13 19:48 ` Eli Zaretskii
2018-01-13 20:19 ` Luis Gerhorst
2018-01-14 5:58 ` Robert Cochran
2018-01-13 18:19 ` Stefan Monnier
2018-01-13 19:34 ` Eli Zaretskii
2018-01-13 21:58 ` Stefan Monnier
2018-01-13 23:18 ` Richard Stallman
2018-01-14 2:07 ` Drew Adams
2018-01-15 2:34 ` Richard Stallman
2018-01-13 18:05 ` Stefan Monnier
2018-01-13 19:37 ` Eli Zaretskii
2018-03-19 19:32 ` Stefan Monnier
2018-03-19 19:34 ` Stefan Monnier
2018-03-19 20:10 ` Eli Zaretskii
2018-03-19 20:50 ` Stefan Monnier
2018-03-20 6:59 ` Eli Zaretskii
2018-03-20 19:20 ` Stefan Monnier
2018-04-02 19:40 ` Richard Stallman
2018-04-03 0:12 ` Stefan Monnier
2018-04-03 16:50 ` Richard Stallman
[not found] <mailman.7210.1515688689.27995.bug-gnu-emacs@gnu.org>
2018-01-12 16:28 ` nazienham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtvvs9wt5.fsf@iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--cc=30078@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).