Function: switch-to-completions
switch-to-completions is an interactive and byte-compiled function
defined in simple.el.gz.
Signature
(switch-to-completions)
Documentation
Select the completion list window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun switch-to-completions ()
"Select the completion list window."
(interactive)
(let ((window (or (get-buffer-window "*Completions*" 0)
;; Make sure we have a completions window.
(progn (minibuffer-completion-help)
(get-buffer-window "*Completions*" 0)))))
(when window
(select-window window)
;; In the new buffer, go to the first completion.
;; FIXME: Perhaps this should be done in `minibuffer-completion-help'.
(when (bobp)
(next-completion 1)))))