From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.bugs Subject: Re: Bug in clone-indirect-buffer and clone-indirect-buffer-other-window Date: Sun, 22 Jan 2006 12:44:49 -0500 Message-ID: References: <20060117.125238.27535.43697@webmail05.nyc.untd.com> <87hd7x3xbm.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1137961830 4140 80.91.229.2 (22 Jan 2006 20:30:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 20:30:30 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, b.jc-emacs@netzero.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 22 21:30:28 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F0lqr-0001dT-UD for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jan 2006 21:30:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0ltS-0003Yi-9N for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jan 2006 15:32:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0jMk-0002gy-53 for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 12:51:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0jMi-0002fX-6C for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 12:51:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0jMg-0002et-6y for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 12:50:58 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0jRH-00029P-Bl for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 12:55:43 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F0jGj-00068q-IE; Sun, 22 Jan 2006 12:44:49 -0500 Original-To: Juri Linkov In-reply-to: <87hd7x3xbm.fsf@jurta.org> (message from Juri Linkov on Sun, 22 Jan 2006 02:45:01 +0200) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14734 Archived-At: 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)))