From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why is not end-of-defun-function buffer local? Date: Tue, 11 Dec 2007 09:58:38 -0500 Message-ID: References: <4759ED09.7060601@gmail.com> <475ADCA4.1020506@gmail.com> <475B48A7.2030509@gmail.com> <475BE75A.9030507@gmx.at> <475E8853.2070801@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197385311 844 80.91.229.12 (11 Dec 2007 15:01:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2007 15:01:51 +0000 (UTC) Cc: Emacs Devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 16:02:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J26cC-0007yj-8A for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 16:01:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J26bt-00044o-Eg for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 10:01:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J26ZP-0002GB-K5 for emacs-devel@gnu.org; Tue, 11 Dec 2007 09:58:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J26ZO-0002Fa-K9 for emacs-devel@gnu.org; Tue, 11 Dec 2007 09:58:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J26ZO-0002F9-9H for emacs-devel@gnu.org; Tue, 11 Dec 2007 09:58:50 -0500 Original-Received: from 76-10-156-34.dsl.teksavvy.com ([76.10.156.34] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J26ZO-00077s-37 for emacs-devel@gnu.org; Tue, 11 Dec 2007 09:58:50 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 322AEB5BF6; Tue, 11 Dec 2007 09:58:37 -0500 (EST) In-Reply-To: <475E8853.2070801@gmx.at> (martin rudalics's message of "Tue, 11 Dec 2007 13:53:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85048 Archived-At: >> 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