help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Easy to add with push but not to the end of a list


From: Michael Heerdegen
Subject: Re: Easy to add with push but not to the end of a list
Date: Tue, 06 Dec 2022 02:36:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Emanuel Berg <incal@dataswamp.org> writes:

> Okay, but how should it be then?

The expansion of calls of your macro should include the test.  Now it is
done when computing the expansion.

Use `macroexpand' and/or `macroexpand-1' to check the expansion of macro
calls.  The rest is just...normal Elisp.  You know how to write Elisp,
so write it so that the expansion you want is generated.  It's code
returning code.  So what's the code you want to produce?

Michael.




reply via email to

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