all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug in clone-indirect-buffer and clone-indirect-buffer-other-window
@ 2006-01-17 20:52 Jay Bingham
  2006-01-18 16:41 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jay Bingham @ 2006-01-17 20:52 UTC (permalink / raw)


I am running Emacs 21.1 on Win2K.

I believe that there are two discrepancies between what is stated on the indirect buffers node in info and the way the two functions clone-indirect-buffer and clone-indirect-buffer-other-window actually work.

In the info page on indirect buffers it states:

-----------------------------------------------------------------------
   A quick and handy way to make an indirect buffer is with the command
`M-x clone-indirect-buffer'.  It creates and selects an indirect buffer
whose base buffer is the current buffer.  With a numeric argument, it
prompts for the name of the indirect buffer; otherwise it defaults to
the name of the current buffer, modifying it by adding a `<N>' prefix
if required.  `C-x 4 c' (`clone-indirect-buffer-other-window') works
like `M-x clone-indirect-buffer', but it selects the cloned buffer in
another window.  These commands come in handy if you want to create new
`*info*' or `*Help*' buffers, for example.
-----------------------------------------------------------------------

The first discrepancy is that when these commands are executed the `<N>' is not prefixed to the buffer name it is suffixed to the buffer name, that is it comes after the name of the buffer not before it.  Either the info page is incorrect or the code is incorrect.

Personally, I would prefer to have some way to differentiate between buffers which contain different files with the same name and buffers that actually point to the same file without having to enter a name for the clone.  I also prefer the numeric indicator to follow the existing buffer name.  Realizing the the same function is likely used to generate the file names I am still willing to suggest that perhaps the `[N]' or `{N}' designators could be used to indicate a cloned buffer as opposed to an automatically generated file name.


The second discrepancy is: although the info page indicates that the only difference between clone-indirect-buffer and clone-indirect-buffer-other-window is that the latter selects the buffer in another window, I do not believe that this is the case.  The clone-indirect-buffer function accepts an argument and prompts for a name while the clone-indirect-buffer-other-window function ignores any numeric argument.
I would like to see the clone-indirect-buffer-other-window function accept an argument as well.

__
J_)
C_)ingham


______________________________________________________________________
Call Anyone, Anytime, Anywhere in the World - FREE!
Free Internet calling from NetZero Voice
Visit http://www.netzerovoice.com today!

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

end of thread, other threads:[~2006-01-24 16:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 20:52 Bug in clone-indirect-buffer and clone-indirect-buffer-other-window Jay Bingham
2006-01-18 16:41 ` Kevin Rodgers
2006-01-18 18:56 ` Eli Zaretskii
2006-01-19 17:43 ` Richard M. Stallman
2006-01-22  0:45   ` Juri Linkov
2006-01-22 17:44     ` Richard M. Stallman
2006-01-23  1:57       ` Juri Linkov
2006-01-24 16:46         ` Richard M. Stallman
2006-01-22 17:44     ` Richard M. Stallman

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.