]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (choose-completion): Use quit-window.
authorMartin Rudalics <rudalics@gmx.at>
Tue, 29 May 2012 12:21:45 +0000 (20:21 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 29 May 2012 12:21:45 +0000 (20:21 +0800)
Fixes: debbugs:11567
lisp/ChangeLog
lisp/simple.el

index 2e4155e6c0d336c8c4290c38b587d5bf4b97f2ca..a98bdda35267994ca521715150e714a803819d04 100644 (file)
@@ -1,3 +1,7 @@
+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
index 544cc9a740fb97710eb2aef1126c35c61bf49f7c..113bebc76ce5bfbffdd1960416b76fd225452861 100644 (file)
@@ -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