[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macro expansion: Why doesn't the invoked macro see (let (variables))
From: |
Andreas Schwab |
Subject: |
Re: Macro expansion: Why doesn't the invoked macro see (let (variables))from the invoking one? |
Date: |
Wed, 08 Feb 2012 21:16:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Alan Mackenzie <address@hidden> writes:
> So, we've got a dynamically scoped language. run-hooks-here is invoked
> from define-minor-mode.
No, run-hooks-here is not invoked, `((run-hooks-here)) is invoked, which
returns '((run-hooks-here)), which is then substituted into the
expansion of define-minor-mode. If you want run-hooks-here to be
invoked you need to use `(,(run-hooks-here)).
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."