nrw.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Wir sind eine freundliche Mastodon Instanz aus Nordrhein-Westfalen. Ob NRW'ler oder NRW-Sympathifanten, jeder ist hier willkommen.

Serverstatistik:

2,9 Tsd.
aktive Profile

Harald

Getting macros for Emacs right is an abysmal pita, as the output of the macro must be valid Elisp code. This usually requires a wild mix of expansion/evaluation or not of the macro parameters in the right places. If you have not done this for the last umpteen years, you will (no subjunctive, you WILL) screw up first.

To make the task a easier I tried a macro to (a) dump the macro expansion of your macro and (b) let it go wild.

codeberg.org/harald/Codeschnip

Codeberg.orgCodeschnipselnotizen/elisp/tracemacro.el an mainCodeschnipselnotizen - Code snippets and notes
#elisp#emacs#defun

@HaraldKi Of course it must generate valid Elisp. If this is surprising to you, I think your mental model may be slightly off. A macro is just treating executable code as a list of symbols. That's really all there is to it.

Besides, I rarely write any code right the first time xD

@yantar92 Looks good, will try it next time.👍