Commit d953b88c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Buffer-menu-mouse-select): Handle dedicated window.

parent fd11871a
......@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment