emacs-devel
[Top][All Lists]
Advanced

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

Re: Propagating local variables?


From: Stefan Monnier
Subject: Re: Propagating local variables?
Date: Wed, 16 May 2018 16:49:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> SM> I think most other "multi-buffer" packages tend to treat one of their
> SM> buffers as a kind of "master" and have all others point to it, so they can
> SM> lookup shared local variables via something like (buffer-local-value
> SM> my-parent-buffer 'varname).
> If you're the author of all the code that relates to that buffer, sure. But I
> can't expect shell.el to reference the buffer-local `process-environment' of
> my Coq buffer in order to setup the right PATH for that project-specific
> sub-shell.

I only mentioned it as a mechanism to share a variable among various
buffers.  We could decide that shell.el obeys a `parent-buffer` variable
(presumably set by some other package) when non-nil by fetching the
buffer-local `process-environment' of that buffer.


        Stefan



reply via email to

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