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: Stefan Monnier
Subject: Re: Compiling a recursive macro
Date: Thu, 11 Jun 2020 18:02:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (defmacro mmm ()
>     (cond ((at-root-p)
>            do  tree-wide stuff)
>           (t
>            (with-current-buffer root (mmm)))

I think you're confused.
It doesn't make much sense to do `with-current-buffer` inside a macro
(well, it can make sense, but only in rather unusual circumstances).

So in the absence of more details, I'll assume that making it a function
is the better option.


        Stefan




reply via email to

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