all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: bug-gnu-emacs@gnu.org, b.jc-emacs@netzero.com
Subject: Re: Bug in clone-indirect-buffer and clone-indirect-buffer-other-window
Date: Sun, 22 Jan 2006 12:44:49 -0500	[thread overview]
Message-ID: <E1F0jGj-00068q-IE@fencepost.gnu.org> (raw)
In-Reply-To: <87hd7x3xbm.fsf@jurta.org> (message from Juri Linkov on Sun, 22 Jan 2006 02:45:01 +0200)

I had not noticed that clone-indirect-buffer-other-window asked the
user to specify the name of the buffer to start with.  That seems like
a big inconsistency.  Normally the only difference between foobar and
foobar-other window is where to display the results.

I see that clone-indirect-buffer-other-window is documented wrongly in
the manual, based on the assumption that it does what its name
suggests.

So I think the right thing is to replace its definition with this:



(defun clone-indirect-buffer-other-window (newname display-flag &optional norecord)
  "Like `clone-indirect-buffer' but display in another window."
  (interactive
   (progn
     (if (get major-mode 'no-clone-indirect)
	 (error "Cannot indirectly clone a buffer in %s mode" mode-name))
     (list (if current-prefix-arg
	       (read-string "BName of indirect buffer: "))
	   t)))
  (let ((pop-up-windows t))
    (clone-indirect-buffer newname display-flag norecord)))

  reply	other threads:[~2006-01-22 17:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2006-01-23  1:57       ` Juri Linkov
2006-01-24 16:46         ` Richard M. Stallman
2006-01-22 17:44     ` Richard M. Stallman

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=E1F0jGj-00068q-IE@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=b.jc-emacs@netzero.com \
    --cc=bug-gnu-emacs@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.