From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: strange generate-new-buffer-name behaviour Date: Sun, 12 Dec 2010 00:53:36 +0200 Message-ID: References: <52D2F6B8-0C31-4F82-9804-947D1BA7E82E@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636284a7254141f04972a574f X-Trace: dough.gmane.org 1292108034 24892 80.91.229.12 (11 Dec 2010 22:53:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Dec 2010 22:53:54 +0000 (UTC) Cc: Emacs Dev To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 11 23:53:50 2010 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.69) (envelope-from ) id 1PRYK1-00084N-7g for ged-emacs-devel@m.gmane.org; Sat, 11 Dec 2010 23:53:45 +0100 Original-Received: from localhost ([127.0.0.1]:39093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRYK0-0003mh-Gg for ged-emacs-devel@m.gmane.org; Sat, 11 Dec 2010 17:53:44 -0500 Original-Received: from [140.186.70.92] (port=47937 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRYJu-0003mc-HU for emacs-devel@gnu.org; Sat, 11 Dec 2010 17:53:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRYJt-0008OS-Fh for emacs-devel@gnu.org; Sat, 11 Dec 2010 17:53:38 -0500 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:52092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRYJt-0008OO-DK for emacs-devel@gnu.org; Sat, 11 Dec 2010 17:53:37 -0500 Original-Received: by qwa26 with SMTP id 26so5084222qwa.0 for ; Sat, 11 Dec 2010 14:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=V5jBfl89i2OoZC6zo7sI71lmYVTeddWkdiyGl84Q1vs=; b=W5x+Ar6AHSP0FhgdQSep1+xwpQbNR+/zZwj//Pl+i3ZbHnekqSIi3Jn0QOWva8wzqN GWNJHauTBPW3uLCdlFYhwQsUyieJWVlcp8nClO3+wDBH65WdGnUBbQp7F9oViQ4EASHg oqUSnGVcIS0bMyLBH8mFSYSJaw3EzXBTwzpOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=H+FAi+2MtG5MFHVc3MZ7trFFPwF/2vZkx9FzqCK/DhJ9/lLyqOt5I8OVmsPgWERiVx CaeOsV/R5WR2+atcO22TPGKaLklvc/urZdzy+3QDMhyh7liOe3duE8s2YCn27w0jroa+ mKht4thuEL7FDWQ11bXs5w8/4Zwd2L8EdBu7k= Original-Received: by 10.229.216.73 with SMTP id hh9mr2140150qcb.298.1292108016390; Sat, 11 Dec 2010 14:53:36 -0800 (PST) Original-Received: by 10.229.216.199 with HTTP; Sat, 11 Dec 2010 14:53:36 -0800 (PST) In-Reply-To: <52D2F6B8-0C31-4F82-9804-947D1BA7E82E@raeburn.org> X-detected-operating-system: by eggs.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:133615 Archived-At: --001636284a7254141f04972a574f Content-Type: text/plain; charset=UTF-8 > > > > (generate-new-buffer-name "foo") > > => "foo<5>" > > (generate-new-buffer-name "foo" "foo<3>") > > => "foo<3>" > > (generate-new-buffer-name "foo" "foo<6>") > > => "foo<5>" > > > > However, for me all these forms evaluate to "foo" > > This might be obvious, but: Do you actually have existing buffers named > "foo", "foo<2>", "foo<3>", and "foo<4>" as described in the paragraph before > that example code? > I did not create the buffers with the given names. alin --001636284a7254141f04972a574f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (generate-new-buffer-name "foo= ")
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D> "f= oo<5>"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (generate-new-buffer-name "foo= " "foo<3>")
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D> "f= oo<3>"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (generate-new-buffer-name "foo= " "foo<6>")
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D> "f= oo<5>"
>
> However, for me all these forms evaluate to "foo"

This might be obvious, but: Do you actually have existing buffers nam= ed "foo", "foo<2>", "foo<3>", and= "foo<4>" as described in the paragraph before that example= code?

I did not create the buffers with the given names.
alin




--001636284a7254141f04972a574f--