aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2012-05-29 20:21:45 +0800
committerChong Yidong2012-05-29 20:21:45 +0800
commit69d565e2c2508ccc707ce08bcdfebd3e65615c37 (patch)
tree032e8476c3e4b6452205fd0096c9976f05b0a8a9
parenta149fa519d0cda67bead8ac74edbaf122da1ec91 (diff)
downloademacs-69d565e2c2508ccc707ce08bcdfebd3e65615c37.tar.gz
emacs-69d565e2c2508ccc707ce08bcdfebd3e65615c37.zip
* lisp/simple.el (choose-completion): Use quit-window.
Fixes: debbugs:11567
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el11
2 files changed, 5 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2e4155e6c0d..a98bdda3526 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-05-29 Martin Rudalics <rudalics@gmx.at>
2
3 * simple.el (choose-completion): Use quit-window (Bug#11567).
4
12012-05-29 Chong Yidong <cyd@gnu.org> 52012-05-29 Chong Yidong <cyd@gnu.org>
2 6
3 * whitespace.el (whitespace-cleanup): Fix usage of 7 * 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)."
6203 6203
6204 (unless (buffer-live-p buffer) 6204 (unless (buffer-live-p buffer)
6205 (error "Destination buffer is dead")) 6205 (error "Destination buffer is dead"))
6206 (select-window (posn-window (event-start event))) 6206 (quit-window nil (posn-window (event-start event)))
6207 (if (and (one-window-p t 'selected-frame)
6208 (window-dedicated-p (selected-window)))
6209 ;; This is a special buffer's frame
6210 (iconify-frame (selected-frame))
6211 (or (window-dedicated-p (selected-window))
6212 (bury-buffer)))
6213 (select-window
6214 (or (get-buffer-window buffer 0)
6215 owindow))
6216 6207
6217 (with-current-buffer buffer 6208 (with-current-buffer buffer
6218 (choose-completion-string 6209 (choose-completion-string