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

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

Re: Compiling a recursive macro


From: Douglas Lewan
Subject: Re: Compiling a recursive macro
Date: Thu, 11 Jun 2020 17:38:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 6/11/20 5:32 PM, Michael Heerdegen wrote:
Douglas Lewan <d.lewan2000@gmail.com> writes:

(defmacro mmm ()
     (cond ((at-root-p)
            do  tree-wide stuff)
           (t
            (with-current-buffer root (mmm)))
That really looks like this shouldn't be a macro.  Why do you want this
to be a macro?
The macro itself has to establish a new variable for each buffer in the tree of buffers. It's somehow not natural (to me) to pass 'new-var to a defun that's supposed to act like (defvar).

--
,Doug
d.lewan2000@gmail.com
(908) 720 7908

If this is what winning looks like, I'd hate to see what losing is.



reply via email to

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