emacs-devel
[Top][All Lists]
Advanced

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

Macro expansion: Why doesn't the invoked macro see (let (variables)) fro


From: Alan Mackenzie
Subject: Macro expansion: Why doesn't the invoked macro see (let (variables)) from the invoking one?
Date: Wed, 8 Feb 2012 17:26:38 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, Emacs.

One macro FOO binds a let variable, then invokes another macro BAR.  BAR
doesn't see this let variable.  Why not?  Is there anything I can do
about this?

(defmacro BAR ()
  (message (if (boundp 'asdf) "asdf" "no asdf"))
  '(message "bar"))

(defmacro FOO ()
  (let (asdf)
    `(BAR)))

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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