[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
- Re: Compiling a recursive macro, (continued)
- Re: Compiling a recursive macro, Douglas Lewan, 2020/06/11
- Re: Compiling a recursive macro, Michael Heerdegen, 2020/06/11
- Re: Compiling a recursive macro, Douglas Lewan, 2020/06/11
- Re: Compiling a recursive macro, Michael Heerdegen, 2020/06/11
- Re: Compiling a recursive macro, Douglas Lewan, 2020/06/11
- Re: Compiling a recursive macro, Michael Heerdegen, 2020/06/12
- Re: Compiling a recursive macro, Douglas Lewan, 2020/06/12
- Re: Compiling a recursive macro, Douglas Lewan, 2020/06/11
- Re: Compiling a recursive macro, Michael Heerdegen, 2020/06/13
- Re: Compiling a recursive macro, Jakub Jankiewicz, 2020/06/13
- Re: Compiling a recursive macro,
Stefan Monnier <=
Re: Compiling a recursive macro, Michael Heerdegen, 2020/06/11
Re: Compiling a recursive macro, Jakub Jankiewicz, 2020/06/11