From: Martin Rudalics Date: Tue, 29 May 2012 12:21:45 +0000 (+0800) Subject: * lisp/simple.el (choose-completion): Use quit-window. X-Git-Tag: emacs-24.2.90~471^2~6^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69d565e2c2508ccc707ce08bcdfebd3e65615c37;p=emacs.git * lisp/simple.el (choose-completion): Use quit-window. Fixes: debbugs:11567 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2e4155e6c0d..a98bdda3526 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-05-29 Martin Rudalics + + * simple.el (choose-completion): Use quit-window (Bug#11567). + 2012-05-29 Chong Yidong * whitespace.el (whitespace-cleanup): Fix usage of diff --git a/lisp/simple.el b/lisp/simple.el index 544cc9a740f..113bebc76ce 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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