mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(Buffer-menu-mouse-select): Handle dedicated window.
This commit is contained in:
parent
fd11871ac0
commit
d953b88c35
@ -346,7 +346,10 @@ You can mark buffers with the \\<Buffer-menu-mode-map>\\[Buffer-menu-mark] comma
|
||||
(goto-char (posn-point (event-end event)))
|
||||
(setq buffer (Buffer-menu-buffer t))))
|
||||
(select-window (posn-window (event-end event)))
|
||||
(switch-to-buffer buffer)))
|
||||
(if (and (window-dedicated-p (selected-window))
|
||||
(eq (selected-window) (frame-root-window)))
|
||||
(switch-to-buffer-other-frame buffer)
|
||||
(switch-to-buffer buffer))))
|
||||
|
||||
(defun Buffer-menu-this-window ()
|
||||
"Select this line's buffer in this window."
|
||||
|
Loading…
Reference in New Issue
Block a user