GNU bug report logs - #76795
Add macro expansion commands that use macroexpand-all

Previous Next

Package: emacs;

Reported by: Okamsn <okamsn <at> protonmail.com>

Date: Fri, 7 Mar 2025 00:15:01 UTC

Severity: wishlist

Tags: patch

To reply to this bug, email your comments to 76795 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76795; Package emacs. (Fri, 07 Mar 2025 00:15:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Okamsn <okamsn <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Mar 2025 00:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Okamsn <okamsn <at> protonmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Add macro expansion commands that use macroexpand-all
Date: Fri, 07 Mar 2025 00:14:00 +0000
[Message part 1 (text/plain, inline)]
Hello,

The attached patch adds for at expanding the sexp before point using 
`macroexpand-all` instead of `macroexpand`.  This is useful when the 
expansion contains macros that could be further expanded. I have been 
using it for several years in my own config.

I have named these commands 'pp-macroexpand-all-last-sexp ' and 
'pp-macroexpand-all-expression '. They could also be called 
'pp-macroexpand-last-sexp-all' and 'pp-macroexpand-expression-all'. 
Please let me know if you would prefer different names.

Thank you.
[0001-Add-PP-commands-that-use-macroexpand-all.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76795; Package emacs. (Fri, 07 Mar 2025 07:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 76795 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Okamsn <okamsn <at> protonmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 76795 <at> debbugs.gnu.org
Subject: Re: bug#76795: Add macro expansion commands that use macroexpand-all
Date: Fri, 07 Mar 2025 09:12:42 +0200
> Date: Fri, 07 Mar 2025 00:14:00 +0000
> From:  Okamsn via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> The attached patch adds for at expanding the sexp before point using 
> `macroexpand-all` instead of `macroexpand`.  This is useful when the 
> expansion contains macros that could be further expanded. I have been 
> using it for several years in my own config.
> 
> I have named these commands 'pp-macroexpand-all-last-sexp ' and 
> 'pp-macroexpand-all-expression '. They could also be called 
> 'pp-macroexpand-last-sexp-all' and 'pp-macroexpand-expression-all'. 
> Please let me know if you would prefer different names.

Thanks.

Stefan, any comments on this?

In any case, if we decide to install this, it will need a NEWS entry
and perhaps also be mentioned in the ELisp manual.




Added tag(s) patch. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 07 Mar 2025 16:48:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 10 Mar 2025 21:08:03 GMT) Full text and rfc822 format available.

This bug report was last modified 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.