[Top][All Lists]

[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 18:21:55 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 6/11/20 5:55 PM, Michael Heerdegen wrote:
Douglas Lewan <> writes:

The macro itself has to establish a new variable for each buffer in
the tree of buffers.
Are these variables buffer-local?  If not - could you use an alist with
buffers being the keys instead and save that in one variable?  Why do
you want one declared variable per buffer?
They are buffer-local. Definition of such a variable spans the tree of buffers in question. I suppose I could just define them in the root buffer, but then I'd also need to use a specialized getter instead of the variable itself. The latter definitely seems preferable to me. If there's a way to do this with emacs lisp's natural scoping, I'm more than happy to learn.

(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]