compile.el and kill-all-local-variables
Marcus Harnisch
marcus.harnisch at gmx.net
Tue Jul 24 11:59:31 EDT 2007
Stephen J. Turnbull writes:
> > > You can make the buffer-local survive `kill-all-local-variables'
> > > by making it permanent, thus:
> > > (put 'compilation-error-regexp-systems-list 'permanent-local t)
> >
> > I will try that as workaround, but don't regard that as a proper
> > solution to the problem.
>
> Well, if you don't consider that a proper solution, then there isn't
> one at present. A "permanent-local" is intended be local to the
> buffer. However, non-permanent locals are often used as an
> approximation to "mode local" variables, and thus get killed by
> `kill-all-local-variables' when modes are switched.
I don't consider it a proper solution because it fixes the symptom,
not the cause. A different situation may require the buffer-local
variable to be killed when calling `kill-all-local-variables'. What
would you do to fix that?
I wonder if the call to `kill-all-local-variables' is a bit too
sledgehammerish and should be replaced by something less invasive.
Thanks
-- Marcus
More information about the XEmacs-Beta
mailing list