From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Docstring of rename-buffer Date: Fri, 26 Aug 2011 15:59:34 -0400 Message-ID: <87vctk54gp.fsf@stupidchicken.com> References: <871uwbq8uj.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314388788 19524 80.91.229.12 (26 Aug 2011 19:59:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 19:59:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 26 21:59:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx2Z3-0003pm-4n for ged-emacs-devel@m.gmane.org; Fri, 26 Aug 2011 21:59:41 +0200 Original-Received: from localhost ([::1]:33801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx2Z2-00078I-P0 for ged-emacs-devel@m.gmane.org; Fri, 26 Aug 2011 15:59:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx2Z0-000782-3g for emacs-devel@gnu.org; Fri, 26 Aug 2011 15:59:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx2Yy-0005pa-Ve for emacs-devel@gnu.org; Fri, 26 Aug 2011 15:59:37 -0400 Original-Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]:57027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx2Yy-0005pU-Tq for emacs-devel@gnu.org; Fri, 26 Aug 2011 15:59:36 -0400 Original-Received: from furball (dhcp-128-36-14-41.central.yale.edu [128.36.14.41]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7QJxYJd032639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 26 Aug 2011 15:59:34 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 24 Aug 2011 11:05:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.143 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143595 Archived-At: Stefan Monnier 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.