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

(mouse-choose-completion): If *Completion* is a special

buffer or just has a dedicated window, do something reasonable.
parent 4e722714
......@@ -1202,7 +1202,12 @@ and selects that window."
(setq choice (buffer-substring beg end)))))
(let ((owindow (selected-window)))
(select-window (posn-window (event-start event)))
(if (and (one-window-p t 'selected-frame)
(window-dedicated-p (selected-window)))
;; This is a special buffer's frame
(iconify-frame (selected-frame))
(or (window-dedicated-p (selected-window))
(select-window owindow))
(choose-completion-string choice buffer)))
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