From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: rename-file Date: Thu, 27 Aug 2009 13:28:09 +0200 Message-ID: <871vmxebsm.fsf@escher.local.home> References: <4A955D32.8030202@gnu.org> <8763ca9zbi.fsf@escher.local.home> <87d46hejn8.fsf@escher.local.home> <878wh5efts.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251372539 29918 80.91.229.12 (27 Aug 2009 11:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 11:28:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 27 13:28:52 2009 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 1Mgd9t-0004VK-RK for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 13:28:50 +0200 Original-Received: from localhost ([127.0.0.1]:57142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgd9t-0005Jg-5j for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 07:28:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mgd9n-0005Jb-1k for emacs-devel@gnu.org; Thu, 27 Aug 2009 07:28:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgd9g-0005JP-Qv for emacs-devel@gnu.org; Thu, 27 Aug 2009 07:28:41 -0400 Original-Received: from [199.232.76.173] (port=58678 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgd9g-0005JM-OB for emacs-devel@gnu.org; Thu, 27 Aug 2009 07:28:36 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41933) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mgd9g-0003a9-Bi for emacs-devel@gnu.org; Thu, 27 Aug 2009 07:28:36 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mgd9d-0004Rb-Sj for emacs-devel@gnu.org; Thu, 27 Aug 2009 13:28:33 +0200 Original-Received: from i59f5518c.versanet.de ([89.245.81.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2009 13:28:33 +0200 Original-Received: from stephen.berman by i59f5518c.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2009 13:28:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i59f5518c.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/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:114684 Archived-At: On Thu, 27 Aug 2009 12:21:36 +0200 Andreas Schwab wrote: > There can be only at most one name associated > with any buffer. Isn't it rather "exactly one file name"? Or is it possible to have nameless buffers? > >> 1. C-x C-f bla >> 2. C-h v buffer-file-name => bla >> 3. M-x rename-file RET blabla >> 4. C-h v buffer-file-name => bla >> >> Surely the return value in step 4 is unwanted, isn't it? > > The visited name of the buffer didn't change in any way whatsoever. But that's precisely the problem! > Only set-visited-file-name can do that. Then it should be made to take effect between steps 3 and 4 above. I don't understand how anyone can deny that evaluating the variable whose value is documented as the "Name of file visited in current buffer, or nil if not visiting a file" should return the correct current name of the visited file. Steve Berman