From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70819: [PATCH] Make clone-indirect-buffer-other-window use other window Date: Sat, 25 May 2024 10:49:56 +0300 Message-ID: <861q5q1gbf.fsf@gnu.org> References: <871q6degs0.fsf@freakingpenguin.com> <86fruo3de1.fsf@gnu.org> <87v83ipfn8.fsf_-_@freakingpenguin.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , 70819@debbugs.gnu.org, monnier@iro.umontreal.ca To: richard@freakingpenguin.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 09:50:59 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sAmB9-0007Ww-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 09:50:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAmB6-0008C0-WA; Sat, 25 May 2024 03:50:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAmB4-0008Bi-NC for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:50:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAmB4-0008Ik-FO for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:50:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAmBB-0006yD-RN for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2024 07:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70819 X-GNU-PR-Package: emacs Original-Received: via spool by 70819-submit@debbugs.gnu.org id=B70819.171662341426785 (code B ref 70819); Sat, 25 May 2024 07:51:01 +0000 Original-Received: (at 70819) by debbugs.gnu.org; 25 May 2024 07:50:14 +0000 Original-Received: from localhost ([127.0.0.1]:41882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmAP-0006xx-RP for submit@debbugs.gnu.org; Sat, 25 May 2024 03:50:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmAN-0006xo-Sr for 70819@debbugs.gnu.org; Sat, 25 May 2024 03:50:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAmAA-0007yc-8Y; Sat, 25 May 2024 03:49:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PxmQRwdOswwNSDZ3CC21+nbGzJUqoEzKQbjuI9Ds2P8=; b=Itwb3OWAi66H /Bp1G3qmrrW6nQVGWEmzECW3vbmInLdVnCfiOCuem07OlvfvgFMxHKhX+I4PrsK1HF0MaHYO7/fxR buh/a9JwQvI7NIykMmXYOa5yOT8ZBrT0fZ2+5e3SloQfo/Qt1418GRk3LOub27gs3BFtJhtwHa5f9 K3jpwb0BtXcok/rASunkZ1qkKFQ2das6A0UBk2MckLqSMvjH25gmCPLmfTU6YJysmUdf+k5fWCJUL Eaqegl0lup1d4oEL6r8cdpW8XzKY5he30qvzmD5ArAN/kmHaCJwr2toZm/X7zf5O5is/Dr/djo/Ln vnyq37HxP9tikgrE2QD4/Q==; In-Reply-To: (message from martin rudalics on Mon, 13 May 2024 10:05:52 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285831 Archived-At: Ping! Richard, could you please augment your pat6ch according to Martin's comments and resubmit? > Date: Mon, 13 May 2024 10:05:52 +0200 > Cc: Eli Zaretskii , 70819@debbugs.gnu.org > From: martin rudalics > > > -(defun clone-indirect-buffer-other-window (newname display-flag &optional norecord) > > +(defun clone-indirect-buffer-other-window (newname &optional norecord) > > "Like `clone-indirect-buffer' but display in another window." > > (interactive > > (progn > > @@ -10658,8 +10658,8 @@ Returns the newly created indirect buffer." > > (list (if current-prefix-arg > > (read-buffer "Name of indirect buffer: " (current-buffer))) > > t))) > > - (let ((pop-up-windows t)) > > - (clone-indirect-buffer newname display-flag norecord))) > > + (switch-to-buffer-other-window > > + (clone-indirect-buffer newname nil norecord))) > > I see two problems: > > (1) 'clone-indirect-buffer-other-window' would still have to obey the > DISPLAY_FLAG argument. Some application may rely on the fact that > 'clone-indirect-buffer-other-window' doesn't display the buffer if > it is nil. > > (2) 'switch-to-buffer-other-window' does not get passed the NORECORD > argument. > > martin >