[Top][All Lists]

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

Re: rename-file

From: Stephen Berman
Subject: Re: rename-file
Date: Thu, 27 Aug 2009 13:28:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On Thu, 27 Aug 2009 12:21:36 +0200 Andreas Schwab <address@hidden> 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

reply via email to

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