changeset 105969:6a8befbb8e39

(minibuffer-completion-help): Use minibuffer-hide-completions.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 12 Nov 2009 23:10:01 +0000
parents f4dc8b8f20d2
children f6c1ac558c84
files lisp/ChangeLog lisp/minibuffer.el
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Nov 12 22:37:58 2009 +0000
+++ b/lisp/ChangeLog	Thu Nov 12 23:10:01 2009 +0000
@@ -1,3 +1,8 @@
+2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* minibuffer.el (minibuffer-completion-help):
+	Use minibuffer-hide-completions.
+
 2009-11-12  Per Starbäck  <per@starback.se>  (tiny change)
 
 	* dired.el (dired-save-positions, dired-restore-positions): New funs.
--- a/lisp/minibuffer.el	Thu Nov 12 22:37:58 2009 +0000
+++ b/lisp/minibuffer.el	Thu Nov 12 23:10:01 2009 +0000
@@ -989,12 +989,7 @@
 
       ;; If there are no completions, or if the current input is already the
       ;; only possible completion, then hide (previous&stale) completions.
-      (let ((window (and (get-buffer "*Completions*")
-                         (get-buffer-window "*Completions*" 0))))
-        (when (and (window-live-p window) (window-dedicated-p window))
-          (condition-case ()
-              (delete-window window)
-            (error (iconify-frame (window-frame window))))))
+      (minibuffer-hide-completions)
       (ding)
       (minibuffer-message
        (if completions "Sole completion" "No completions")))