emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rename-file


From: Stefan Monnier
Subject: Re: rename-file
Date: Wed, 26 Aug 2009 23:16:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]