all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: martin rudalics <rudalics@gmx.at>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Why is not end-of-defun-function buffer local?
Date: Tue, 11 Dec 2007 09:58:38 -0500	[thread overview]
Message-ID: <jwvejdt2s9j.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <475E8853.2070801@gmx.at> (martin rudalics's message of "Tue, 11 Dec 2007 13:53:39 +0100")

>> 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	other threads:[~2007-12-11 14:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-08  1:02 Why is not end-of-defun-function buffer local? Lennart Borgman (gmail)
2007-12-08  2:18 ` Stefan Monnier
2007-12-08 18:04   ` Lennart Borgman (gmail)
2007-12-08 20:16     ` Stefan Monnier
2007-12-09  1:45       ` Lennart Borgman (gmail)
2007-12-09  2:45         ` Stefan Monnier
2007-12-09  3:04           ` Lennart Borgman (gmail)
2007-12-09 13:02           ` martin rudalics
2007-12-10  5:13             ` Stefan Monnier
2007-12-11 12:53               ` martin rudalics
2007-12-11 14:58                 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvejdt2s9j.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.