emacs-devel
[Top][All Lists]
Advanced

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

Re: Why is not end-of-defun-function buffer local?


From: Stefan Monnier
Subject: Re: Why is not end-of-defun-function buffer local?
Date: Tue, 11 Dec 2007 09:58:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> The "automatically local when set" is of course making it yet
>> a bit messier.  Not sure what we should do about that.

> I'm still missing you.  Consider

> (defvar foo 0)

> (let ((this-buffer (current-buffer)))
>   (set (make-local-variable 'foo) 1)
>   (let ((foo 2))
>     (with-temp-buffer "*foo*"
>       (let ((foo 3))
>       (with-current-buffer this-buffer
>         foo)))))

> Doesn't this exhibit the same "deep binding" behavior as
> `make-variable-buffer-local'?

Of course.  It's just a bit less surprising because you then only see it
when you explicitly ask to make-local-variable.


        Stefan




reply via email to

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