From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: Bug in clone-indirect-buffer and clone-indirect-buffer-other-window Date: Mon, 23 Jan 2006 03:57:23 +0200 Organization: JURTA Message-ID: <87y817d46w.fsf@jurta.org> References: <20060117.125238.27535.43697@webmail05.nyc.untd.com> <87hd7x3xbm.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137986990 2312 80.91.229.2 (23 Jan 2006 03:29:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2006 03:29:50 +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 Mon Jan 23 04:29:47 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 1F0sOm-0005Vh-Em for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jan 2006 04:29:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0sRO-0005S4-Ji for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jan 2006 22:32:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0sPw-0002e8-Ai for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 22:30:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0sPv-0002br-2r for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 22:30:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0sPu-0002b2-Mq for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2006 22:30:54 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0sUZ-00072W-9C; Sun, 22 Jan 2006 22:35:43 -0500 Original-Received: from mail.neti.ee (80-235-32-219-dsl.mus.estpak.ee [80.235.32.219]) by Relayhost1.neti.ee (Postfix) with ESMTP id 59CDFCD27; Mon, 23 Jan 2006 05:28:08 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sun, 22 Jan 2006 12:44:49 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:14737 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))) This has only one drawback of being backward incompatible. I don't know how many users rely on the current function arguments. -- Juri Linkov http://www.jurta.org/emacs/