]> git.eshelyaron.com Git - emacs.git/commitdiff
(switch-to-completions): Make a completions window if none.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Jul 1995 13:26:23 +0000 (13:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Jul 1995 13:26:23 +0000 (13:26 +0000)
lisp/simple.el

index e5eb212fe46e30337c2390d516d776fa76f9378e..e1d9b012cfc48c38743e1f34fb518670ba3a0059 100644 (file)
@@ -2954,6 +2954,9 @@ select the completion near point.\n\n"))
 (defun switch-to-completions ()
   "Select the completion list window."
   (interactive)
+  ;; Make sure we have a completions window.
+  (or (get-buffer-window "*Completions*")
+      (minibuffer-completion-help))
   (select-window (get-buffer-window "*Completions*"))
   (goto-char (point-min))
   (search-forward "\n\n")