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: Michael Heerdegen
Subject: Re: Compiling a recursive macro
Date: Fri, 12 Jun 2020 12:49:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Douglas Lewan <d.lewan2000@gmail.com> writes:

> 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.

If you want to use local variables: `make-local-variable' makes a
variable local in the current buffer, `make-variable-buffer-local'
generally; both are functions (not special forms or macros).  And the
getter is `buffer-local-value'; also a function.

Michael.




reply via email to

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