Subject: bug#70137: closed (Re: bug#70137: 30.0.50; pp-macroexpand-last-sexp buffers should turn lexical binding on)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 17 Apr 2024 21:07:02 +0000

Your bug report

#70137: 30.0.50; pp-macroexpand-last-sexp buffers should turn lexical binding on

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
70137: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70137
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#70137: 30.0.50; pp-macroexpand-last-sexp buffers should turn lexical binding on
From: Stefan Monnier <[email-masked]>
To: Augusto Stoffel <[email-masked]>
Cc: [email-masked]
Date: Wed, 17 Apr 2024 17:03:08 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks, pushed to `master`, closing,

        Stefan

Subject: 30.0.50; pp-macroexpand-last-sexp buffers should turn lexical binding on
From: Augusto Stoffel <[email-masked]>
To: [email-masked]
Date: Tue, 02 Apr 2024 08:01:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

If you call pp-macroexpand-last-sexp in a buffer with lexical binding,
the resulting *Pp Macroexpand Output* buffer has lexical binding turned
off.

The problem with this is that if you now go the *Pp Macroexpand Output*
buffer and call pp-macroexpand-last-sexp again, this second macro
expansion step may not reflect what would happen in the original buffer;
I don't recall an example, but some macros expand differently in the two
variable scoping modes.