From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70819: [PATCH] Make clone-indirect-buffer-other-window use other window Date: Mon, 13 May 2024 10:05:52 +0200 Message-ID: References: <871q6degs0.fsf@freakingpenguin.com> <86fruo3de1.fsf@gnu.org> <87v83ipfn8.fsf_-_@freakingpenguin.com> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 70819@debbugs.gnu.org To: Richard Sent , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 13 10:07:45 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 1s6Qin-0005zA-DP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 May 2024 10:07:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6QiT-0006ZT-Iz; Mon, 13 May 2024 04:07:25 -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 1s6Qi7-0006X5-FU for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 04:07:15 -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 1s6Qi6-0005X9-41 for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6Qi6-0001FV-D2 for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 04:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2024 08:07:02 +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.17155875764790 (code B ref 70819); Mon, 13 May 2024 08:07:02 +0000 Original-Received: (at 70819) by debbugs.gnu.org; 13 May 2024 08:06:16 +0000 Original-Received: from localhost ([127.0.0.1]:59287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6QhJ-0001FC-FY for submit@debbugs.gnu.org; Mon, 13 May 2024 04:06:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:38233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6QhF-0001F6-9L for 70819@debbugs.gnu.org; Mon, 13 May 2024 04:06:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1715587553; x=1716192353; i=rudalics@gmx.at; bh=qU0uljKpDTkX8SdaU4SFicZ6lA4HpGf3XM1Yt/V9OpE=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=d/Ba0yeEXLcO3qgHuN5mWbp6I9Lt0tY18Jo2QNMOJgqWrkXYwUAqKdxHZgtJDOZi 2zFovB7KfNaZLcemjpox+Tr0Rz1K2zpIjIxe2+/vShCP2FI+HYMESaLQ5McKJReTt zJZUnoN9g1Q92vzfxCPoPCOCrKD6Chbl/P/msAbqMrr6hiBxqE68KRhX4jN61ZNyB ezKRi/IEi5bfhb280RiNwLQvB39how1X7SzWvGh5pHwBueMDnvFi3xA1mZxL7AxJ7 rmD4wblmv2eB830YgaBiDEFfqlmneRmDHzYjTavo0lIdlAM1nEUPtqcuu3NyJDqeF LWyaG5AQDWu+Y0eO3g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.8.155]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ykg-1sCVEt2dV8-0063lc; Mon, 13 May 2024 10:05:53 +0200 Content-Language: en-US In-Reply-To: <87v83ipfn8.fsf_-_@freakingpenguin.com> X-Provags-ID: V03:K1:QnADFBmBchWEWDUSUKONZhb2CjrkBlChlO8w+irTwuZ6lKwH9FA smnWy8s/pygqUYor8XApIJJPhQHZPA9bR5cMFQTgTMxnb8yp9Vs+EmExrbDZtWpHMD/MbO9 e2N27GPS79+pzB7kXNTLsQ1ZnnqwxQDlFRV0J6TWOvNo25Ni5bnVh9rIQLiwndWML9ByYX/ CCqslAnbjaLmFf3M4tMpA== UI-OutboundReport: notjunk:1;M01:P0:fGIjX2y62EA=;Wp0IxAcBl2fmyGxPobAn5iRddjQ HOIp6bJ+XrE+ZCRZzS8qZPNyX9V/HOzlkLXCrG+sCFWDi11hRnL66Drhc13Z+MumSEU/JugMB +Q+qmtW0PEBju6XhtT6dKtQyzcjk9wGKE8lSrd2PTBA1p65QjCL0ZRBmJryrt0Xfqrhfn0h+S 2NLjnL693R1Wa4uxa0ZGwJes+VFDhxd4IPJmQodHobQvszVI+A4/anoDcb+LiprLjua1IYXXp m6mUVo4UIgFAmN0qnxL8pIe88a9v5nMVjZRNBggotnLc9psQRnRj6myMIlcqw4zFlKzK2nXLZ Ab3ACpL/G34U+EjJA2jPWLDlz3pHV8SafGpC+d9IjK30lRIH7QFRwWh7z0lDf1zGOeMKyPxbv SnmH+14pSMQ5Qw9Sydt8N6GOq+zK+rq4xjNvSbxZq/beEDQilzFGEklZWAyEAvqfTtiGaQw0A 39TslEM8fxm00FW/X+twoxxSjKXeFFZZStiVIfivOP4lX/+VV18Fa8uS7/K7xXLEJZacUe9rt PvaSGTYQlasBxb35PR0WYntWDWGnXcm7SGBmTuQ5AUK+cZ23oHO4cxNgKxKd5U3qSZvohtih0 012yhcfY8LIv5J/FY+jM+VN/Jg3tjokO/ue7TJhaBz7n7E3Aunbczbu+JXUVB3WgdVvpBwcNs tgFe2NSaIevcWXEe8ZG+OxbLzbgcwej01whRUh3xauMtP7Tt83sP50cZfFwNYGKcWvh8+dp9s RRqRPxoouxUL5jEVQRNV8Aw6bRTDBFApphUmGhMuQsybrCtxV0AoUqTF+sj2f6tn6oIVD28t 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:284962 Archived-At: > -(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