[Top][All Lists]

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

Re: Docstring of rename-buffer

From: Chong Yidong
Subject: Re: Docstring of rename-buffer
Date: Fri, 26 Aug 2011 15:59:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>  DEFUN ("rename-buffer", Frename_buffer, Srename_buffer, 1, 2,
>> -       "(list (read-string \"Rename buffer (to new name): \" \
>> +       "(list (read-string (format \"Rename %s to: \" (current-buffer)) \
>>            nil 'buffer-name-history (buffer-name (current-buffer))) \
>>            current-prefix-arg)",
>>         doc: /* Change current buffer's name to NEWNAME (a string).
> Sounds good, please apply,

For consistency with other similar commands, I think it's better to ask
"Rename buffer to: ", omitting the old buffer name.

reply via email to

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