emacs-devel
[Top][All Lists]
Advanced

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

Re: rename-file


From: Sam Steingold
Subject: Re: rename-file
Date: Wed, 26 Aug 2009 23:41:37 -0400

On Wed, Aug 26, 2009 at 11:25 PM, Richard Stallman<address@hidden> wrote:
>    (defun rename-buffer-file (new-name)
>      "Rename the current buffer and the file it is visiting to NEW-NAME."
>      (interactive "FRename current file and buffer to: ")
>
> Given the existence of the command `rename-buffer',
> this name will cause confusion.

please suggest a better name.

> Does it rename the buffer, or does it just set the visited file name?
> The code seems to do the latter.  If so, the doc string is inaccurate.

doc string says:

rename the _BUFFER_ and the _FILE_.
it renames the file and keeps the buffer associated with it.

-- 
Sam Steingold <http://sds.podval.org>




reply via email to

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