emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`clone-indirect-buffer' buffer naming.


From: David Hansen
Subject: `clone-indirect-buffer' buffer naming.
Date: Wed, 11 Jun 2008 13:19:28 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]