[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
- rename-file, Sam Steingold, 2009/08/26
- Re: rename-file, Stephen Berman, 2009/08/26
- Re: rename-file, Stefan Monnier, 2009/08/26
- Re: rename-file, Stephen Berman, 2009/08/27
- Re: rename-file, Andreas Schwab, 2009/08/27
- Re: rename-file, Stephen Berman, 2009/08/27
- Re: rename-file, Andreas Schwab, 2009/08/27
- Re: rename-file,
Stephen Berman <=
- Re: rename-file, Miles Bader, 2009/08/27
- Re: rename-file, Stephen Berman, 2009/08/27
- Re: rename-file, Andreas Schwab, 2009/08/27
- Re: rename-file, Stefan Monnier, 2009/08/27
Re: rename-file, Stefan Monnier, 2009/08/26