Function: first-completion

first-completion is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(first-completion)

Documentation

Move to the first item in the completions buffer.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun first-completion ()
  "Move to the first item in the completions buffer."
  (interactive)
  (goto-char (point-min))
  (if (get-text-property (point) 'mouse-face)
      (unless (get-text-property (point) 'first-completion)
        (let ((inhibit-read-only t))
          (add-text-properties (point) (min (1+ (point)) (point-max))
                               '(first-completion t))))
    (when-let ((pos (next-single-property-change (point) 'mouse-face)))
      (goto-char pos))))