GNU bug report logs -
#68978
Fix Buffer-menu-other-window to display buffers in other window
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Wed, 7 Feb 2024 17:48:02 UTC
Severity: normal
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68978 in the body.
You can then email your comments to 68978 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68978
; Package
emacs
.
(Wed, 07 Feb 2024 17:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> linkov.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 07 Feb 2024 17:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68978
; Package
emacs
.
(Sat, 10 Feb 2024 17:59:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 68978 <at> debbugs.gnu.org (full text, mbox):
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.
bug marked as fixed in version 30.0.50, send any further explanations to
68978 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Sat, 10 Feb 2024 17:59:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 10 Mar 2024 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.