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)
(when-let* ((window (or (minibuffer--completions-visible)
;; Make sure we have a completions window.
(progn (minibuffer-completion-help)
(minibuffer--completions-visible)))))
(select-window window)
(completion--lazy-insert-strings)
(when (bobp)
(cond
((and (memq this-command '(completion-at-point minibuffer-complete))
(equal (this-command-keys) [backtab]))
(goto-char (point-max))
(last-completion))
(t (first-completion))))))