Variable: completion-preview-message-format

completion-preview-message-format is a customizable variable defined in completion-preview.el.gz.

Value

"Completion suggestion %i out of %n"

Documentation

Message to show after cycling the completion preview suggestion.

If the value is a string, completion-preview-next-candidate and completion-preview-prev-candidate display this string in the echo area, after substituting "%i" with the 1-based index of the completion suggestion that the preview is showing, and "%n" with the total number of available completion suggestions for the text around point.

If this option is nil, these commands do not display any message.

This variable was added, or its default value changed, in Emacs 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/completion-preview.el.gz
(defcustom completion-preview-message-format
  "Completion suggestion %i out of %n"
  "Message to show after cycling the completion preview suggestion.

If the value is a string, `completion-preview-next-candidate' and
`completion-preview-prev-candidate' display this string in the
echo area, after substituting \"%i\" with the 1-based index of
the completion suggestion that the preview is showing, and \"%n\"
with the total number of available completion suggestions for the
text around point.

If this option is nil, these commands do not display any message."
  :type '(choice (string :tag "Message format")
                 (const :tag "No message" nil))
  :version "30.1")