From unknown Fri Sep 05 09:28:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68978 <68978@debbugs.gnu.org> To: bug#68978 <68978@debbugs.gnu.org> Subject: Status: Fix Buffer-menu-other-window to display buffers in other window Reply-To: bug#68978 <68978@debbugs.gnu.org> Date: Fri, 05 Sep 2025 16:28:00 +0000 retitle 68978 Fix Buffer-menu-other-window to display buffers in other wind= ow reassign 68978 emacs submitter 68978 Juri Linkov severity 68978 normal tag 68978 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 07 12:47:50 2024 Received: (at submit) by debbugs.gnu.org; 7 Feb 2024 17:47:50 +0000 Received: from localhost ([127.0.0.1]:57864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXm1V-0004Sz-OT for submit@debbugs.gnu.org; Wed, 07 Feb 2024 12:47:50 -0500 Received: from lists.gnu.org ([2001:470:142::17]:58126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXm1T-0004SZ-6E for submit@debbugs.gnu.org; Wed, 07 Feb 2024 12:47:48 -0500 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 1rXm19-00015T-SD for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 12:47:27 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXm18-0002HV-6i for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 12:47:27 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6D760240006 for ; Wed, 7 Feb 2024 17:47:21 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Fix Buffer-menu-other-window to display buffers in other window Organization: LINKOV.NET Date: Wed, 07 Feb 2024 19:28:45 +0200 Message-ID: <86wmrggq1u.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.193; envelope-from=juri@linkov.net; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Tags: patch Here is the patch that fixes Buffer-menu-other-window and Buffer-menu-switch-other-window to inhibit the same window that will display the buffer in another window: diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index b13492c5002..1645cda7df0 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -592,13 +592,17 @@ Buffer-menu-this-window (defun Buffer-menu-other-window () "Select this line's buffer in other window, leaving buffer menu visible." (interactive nil Buffer-menu-mode) - (switch-to-buffer-other-window (Buffer-menu-buffer t))) + (let ((display-buffer-overriding-action + '(nil (inhibit-same-window . t)))) + (switch-to-buffer-other-window (Buffer-menu-buffer t)))) (defun Buffer-menu-switch-other-window () "Make the other window select this line's buffer. The current window remains selected." (interactive nil Buffer-menu-mode) - (display-buffer (Buffer-menu-buffer t) t)) + (let ((display-buffer-overriding-action + '(nil (inhibit-same-window . t)))) + (display-buffer (Buffer-menu-buffer t) t))) (defun Buffer-menu-2-window () "Select this line's buffer, with previous buffer in second window." From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 12:58:25 2024 Received: (at 68978) by debbugs.gnu.org; 10 Feb 2024 17:58:25 +0000 Received: from localhost ([127.0.0.1]:58352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYrcP-0006rx-Ev for submit@debbugs.gnu.org; Sat, 10 Feb 2024 12:58:25 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYrcM-0006rI-Ta; Sat, 10 Feb 2024 12:58:23 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id CD49BE0004; Sat, 10 Feb 2024 17:57:59 +0000 (UTC) From: Juri Linkov To: 68978@debbugs.gnu.org Subject: Re: bug#68978: Fix Buffer-menu-other-window to display buffers in other window In-Reply-To: <86wmrggq1u.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 07 Feb 2024 19:28:45 +0200") Organization: LINKOV.NET References: <86wmrggq1u.fsf@mail.linkov.net> Date: Sat, 10 Feb 2024 19:57:08 +0200 Message-ID: <864jeg6w3v.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68978 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 68978 30.0.50 quit > Here is the patch that fixes Buffer-menu-other-window > and Buffer-menu-switch-other-window to inhibit the same window > that will display the buffer in another window: Pushed to master and closed. From unknown Fri Sep 05 09:28:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Mar 2024 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator