[Top][All Lists]

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

Re: Help needed with defadvice

From: Stefan Monnier
Subject: Re: Help needed with defadvice
Date: Sat, 23 Nov 2013 10:38:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> (defadvice kill-all-local-variables (around inherit activate)
>   "We want inherited variables to survive a call to this function"
>   (let* ((set-list (mapcar (lambda ( v )
>                            (cons v (symbol-value v)))
>                          inherited-alist)))
>     ad-do-it
>     (mapcar (lambda ( c )
>             (set (car c) (cdr c)))
>           set-list)))

> How about an extra blurb in the documentation for make-variable-buffer-local

Which documentation?  The Elisp manual talks about it, as well as about
the `permanant-local' property, which you might like to use.


reply via email to

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