all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: Alin Soare <as1789@gmail.com>
Cc: Emacs Dev <emacs-devel@gnu.org>
Subject: Re: strange generate-new-buffer-name behaviour
Date: Sat, 11 Dec 2010 15:06:30 -0500	[thread overview]
Message-ID: <52D2F6B8-0C31-4F82-9804-947D1BA7E82E@raeburn.org> (raw)
In-Reply-To: <AANLkTimMkzDR1UTzrp2MPtxAw9n9Yik7hHcu13zW96cL@mail.gmail.com>

On Dec 11, 2010, at 14:26, Alin Soare wrote:
> I discovered an error while reading the info page for generating a name for an unexisting buffer :
> 
> In 27.3 Buffer Names I see written so:
> 
>           (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?

Ken


  reply	other threads:[~2010-12-11 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 19:26 strange generate-new-buffer-name behaviour Alin Soare
2010-12-11 20:06 ` Ken Raeburn [this message]
2010-12-11 22:53   ` Alin Soare
2010-12-12  2:46     ` Ken Raeburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52D2F6B8-0C31-4F82-9804-947D1BA7E82E@raeburn.org \
    --to=raeburn@raeburn.org \
    --cc=as1789@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.