John W=
iegley <
johnw@gnu.org> schrieb a=
m Di., 15. Mai 2018 um 21:40=C2=A0Uhr:
I'd like to create a module, propagate.el, which defines a new clas=
s of buffer
local variables: buffer local variables that propagate to any buffers or
processes (in the case of exec-path and process-environment) created on beh=
alf
of the parent.
There is some pior art to this (namely, `d=
efault-directory'), but such a facility needs to be very carefully desi=
gned because it changes fundamental aspects of ELisp in a subtle way. For e=
xample, callers of `with-temp-buffer' can currently assume that buffer-=
local variables are take from their global defaults and not from the "=
parent" buffer. This needs to stay that way. So probably such an inher=
itance facility should be opt-in and not affect existing code.
Be=
fore jumping to implementation discussions, we should analyze the precise r=
equirements for such a facility and make sure it's not a breaking chang=
e.=C2=A0