unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `clone-indirect-buffer' buffer naming.
@ 2008-06-11 11:19 David Hansen
  2008-06-11 13:23 ` Lennart Borgman (gmail)
  2008-06-11 16:25 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: David Hansen @ 2008-06-11 11:19 UTC (permalink / raw)
  To: emacs-devel

Hello,

the doc of `clone-indirect-buffer' states:

Give the indirect buffer name NEWNAME.  Interactively, read NEWNAME
from the minibuffer when invoked with a prefix arg.  If NEWNAME is nil
or if not called with a prefix arg, NEWNAME defaults to the current
buffer's name.  The name is modified by adding a `<N>' suffix to it
or by incrementing the N in an existing suffix.

I don't see this modification.  E.g.

$ emacs -Q tmp/foo.txt

M-x clone-indirect-buffer

M-: (require 'cl)

M-: (loop for b in (buffer-list)
      when (string-match "foo" (buffer-name b))
      collect b)

--> (#<buffer foo.txt> #<buffer foo.txt>)

Bug?  Misleading documentation?

David





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-11 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 11:19 `clone-indirect-buffer' buffer naming David Hansen
2008-06-11 13:23 ` Lennart Borgman (gmail)
2008-06-11 16:25 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).