From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: rename-file Date: Wed, 26 Aug 2009 23:41:37 -0400 Message-ID: <1f77704b0908262041o65007cb1ve8b88997e63d5170@mail.gmail.com> References: <4A955D32.8030202@gnu.org> <1f77704b0908261335y799ec0a4r74c69d9c36a82234@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251344758 24606 80.91.229.12 (27 Aug 2009 03:45:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 03:45:58 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 27 05:45:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgVvq-0005zh-8t for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 05:45:50 +0200 Original-Received: from localhost ([127.0.0.1]:59033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgVvp-0003IP-HI for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 23:45:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgVvj-0003FA-PR for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:45:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgVve-00037s-UT for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:45:43 -0400 Original-Received: from [199.232.76.173] (port=58899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgVve-00037Y-QC for emacs-devel@gnu.org; Wed, 26 Aug 2009 23:45:38 -0400 Original-Received: from mail-yw0-f180.google.com ([209.85.211.180]:47330) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgVrl-0006fN-R1; Wed, 26 Aug 2009 23:41:38 -0400 Original-Received: by ywh10 with SMTP id 10so1099545ywh.7 for ; Wed, 26 Aug 2009 20:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=c5Rbn5xiHEzOKR2G9SR/SJW9LZIshy5q7aN5Ybz37mg=; b=Duz3UpUuCeFGKS1UcX49Y1ieb42BgTB0tXaMW6f884pcsDeY4bwmFj2AI11/9yb3+B DjUyRcq7SAp8ILSjgd8h3LZUAucsIWaOckSHk+BUIuS8/XhCrwkh+fzNQGdewM1QdZVs SULm/FeK1WzzPXd90EXbkPccDL77ELcKTychA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=fLPDw4aFVll72R92h6+G96xIa6gtLZyiOrxHlrTGkDEYrVqWY9SnvBW5wUY1EwRAri GYaKYVsLRvvnV48udfoUR/j3XjyqZ9snSJ/fciAh5+YujszSmAk53zqCAff8QxohPyEl d8RZHRhfVohIEVG7rzAzHM7efKbL37vRW+xA4= Original-Received: by 10.150.65.10 with SMTP id n10mr13237866yba.201.1251344497184; Wed, 26 Aug 2009 20:41:37 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 493c9a903aeda404 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114662 Archived-At: On Wed, Aug 26, 2009 at 11:25 PM, Richard Stallman wrote: > =C2=A0 =C2=A0(defun rename-buffer-file (new-name) > =C2=A0 =C2=A0 =C2=A0"Rename the current buffer and the file it is visitin= g to NEW-NAME." > =C2=A0 =C2=A0 =C2=A0(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. =C2=A0If so, the doc string is inaccurat= e. doc string says: rename the _BUFFER_ and the _FILE_. it renames the file and keeps the buffer associated with it. --=20 Sam Steingold