Commit 69d565e2 authored by Martin Rudalics's avatar Martin Rudalics Committed by Chong Yidong

* lisp/simple.el (choose-completion): Use quit-window.

Fixes: debbugs:11567
parent a149fa51
2012-05-29 Martin Rudalics <rudalics@gmx.at>
* simple.el (choose-completion): Use quit-window (Bug#11567).
2012-05-29 Chong Yidong <cyd@gnu.org>
* whitespace.el (whitespace-cleanup): Fix usage of
......
......@@ -6203,16 +6203,7 @@ With prefix argument N, move N items (negative N means move backward)."
(unless (buffer-live-p buffer)
(error "Destination buffer is dead"))
(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))
(bury-buffer)))
(select-window
(or (get-buffer-window buffer 0)
owindow))
(quit-window nil (posn-window (event-start event)))
(with-current-buffer buffer
(choose-completion-string
......
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