[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does evaluating a piece of Elisp code seemingly not expand a mac
Re: Why does evaluating a piece of Elisp code seemingly not expand a macro?
Mon, 18 Jan 2016 21:03:33 +0100
mu4e 0.9.13; emacs 220.127.116.11
On 2016-01-18, at 14:54, Stefan Monnier <firstname.lastname@example.org> wrote:
>> Does it mean that C-M-x is different than loading?
>> Or C-x C-e, for that matter?
> As well.
>> Is this covered by the manual? (If not, it might need correcting.)
> Not really. The basic idea is that macroexpansion can take place
> *anytime* (tho, before the code is actually executed). If you care
> about when expansion takes place you probably have a bug.
Does that mean that it's possible that a function definition contains
Does that mean that `symbol-function' will expand them?
Does that mean that if I define a macro, then a function using that
macro, and then change the definition of the macro, the behavior of the
function is undefined?
Sorry for so many questions, but I really want to understand this.
(Also, when that happens, I might send a patch for the manual.)
Faculty of Mathematics and Computer Science
Adam Mickiewicz University