help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Help needed with defadvice


From: Alex Kost
Subject: Re: Help needed with defadvice
Date: Sat, 23 Nov 2013 19:43:13 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Stefan Monnier (2013-11-23 18:48 +0400) wrote:

>>        (,(or parent 'kill-all-local-variables))   <<<<<<<<<
> [...]
>> Does anyone know why this is there?
>
> Read the Elisp manual's description of what a major mode should do.
> Buffer-local variables are (in their majority) specific a particular
> major mode, hence they are reset when the major mode changes.

Thanks for the explanation.

(info "(elisp) Creating Buffer-Local") tells about that.  Happily there
is still a possibility for a buffer-local variable to survive after
`kill-all-local-variables': setting a `permanent-local' property of that
variable to non-nil.

Perry Smith, I think this can help you.



reply via email to

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