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: rename-file Date: Wed, 26 Aug 2009 23:16:08 -0400 Message-ID: References: <4A955D32.8030202@gnu.org> <8763ca9zbi.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 1251342989 21166 80.91.229.12 (27 Aug 2009 03:16:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 03:16:29 +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 05:16:22 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 1MgVTJ-0007rW-Pg for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 05:16:22 +0200 Original-Received: from localhost ([127.0.0.1]:44691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgVTI-0000nT-U1 for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 23:16:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgVTD-0000nO-CL for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:16:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgVT7-0000nC-Uq for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:16:14 -0400 Original-Received: from [199.232.76.173] (port=56787 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgVT7-0000n9-Oz for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:16:09 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:8777 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgVT7-0003FQ-Fl for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:16:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8EAIuXlUpFpYuS/2dsb2JhbACBU9ZghBoFh2M X-IronPort-AV: E=Sophos;i="4.44,283,1249272000"; d="scan'208";a="44274873" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO ceviche.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 26 Aug 2009 23:15:14 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C47A4B40F3; Wed, 26 Aug 2009 23:16:08 -0400 (EDT) In-Reply-To: <8763ca9zbi.fsf@escher.local.home> (Stephen Berman's message of "Wed, 26 Aug 2009 20:58:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) 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:114658 Archived-At: >> Why isn't the buffer, which is visiting a file, renamed >> when I rename the underlying file with rename-file? > Not only that, but subsequently doing `C-h v buffer-file-name' on that > buffer returns the previous name, though that file(name) no longer > exists. That's perfectly OK. It's exactly as if someone had done "mv" from outside Emacs (or from a M-x shell buffer). There's nothing wrong with such a situation. C-x C-s will (re)create the file. Stefan