From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: rename-file Date: Thu, 27 Aug 2009 12:21:36 +0200 Message-ID: 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 1251368583 18324 80.91.229.12 (27 Aug 2009 10:23:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 10:23:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 27 12:22:55 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 1Mgc7B-0004o8-13 for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 12:21:58 +0200 Original-Received: from localhost ([127.0.0.1]:53578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgc79-0005Mw-RD for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 06:21:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mgc71-0005Mr-I9 for emacs-devel@gnu.org; Thu, 27 Aug 2009 06:21:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgc6v-0005Me-Vm for emacs-devel@gnu.org; Thu, 27 Aug 2009 06:21:46 -0400 Original-Received: from [199.232.76.173] (port=57305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgc6v-0005Mb-NS for emacs-devel@gnu.org; Thu, 27 Aug 2009 06:21:41 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:50839) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mgc6v-0007Za-9A for emacs-devel@gnu.org; Thu, 27 Aug 2009 06:21:41 -0400 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7RALcJN007688; Thu, 27 Aug 2009 06:21:38 -0400 Original-Received: from hase.home (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7RALaEj008677; Thu, 27 Aug 2009 06:21:37 -0400 X-Yow: Two LITTLE black dots and one BIG black dot...nice 'n' FLUFFY!! In-Reply-To: <878wh5efts.fsf@escher.local.home> (Stephen Berman's message of "Thu, 27 Aug 2009 12:01:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114683 Archived-At: Stephen Berman writes: > If that is so, then the doc string should be changed to "A name of the > file visited in the current buffer...", to avoid confusion. No, that's very wrong. There can be only at most one name associated with any buffer. > 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. Only set-visited-file-name can do that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."