Variable: magit-completing-read-default-prompt-predicate

magit-completing-read-default-prompt-predicate is a variable defined in magit-base.el.

Value

#[0
  "\305=\205,�\306\301!\203�	\206+�\306\302!\203�\n\206+�\306\303!\203$�\206+�\306\304!\205+�\f?\207"
  [magit-completing-read-function helm-mode ivy-mode selectrum-mode
				  vertico-mode
				  magit-builtin-completing-read boundp]
  2]

Documentation

Function used to determine whether to add default to prompt.

This is used by magit-completing-read (which see).

The default function returns nil, when a completion frameworks is used for which this is undesirable. More precisely, it returns nil, when magit-completing-read-function is not magit-builtin-completing-read, or one of helm-mode, ivy-mode, selectrum-mode or vertico-mode is enabled. When this function returns nil, then nil is passed to format-prompt (which see), instead of the default (DEF or FALLBACK).

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(defvar magit-completing-read-default-prompt-predicate
  (lambda ()
    (and (eq magit-completing-read-function
             'magit-builtin-completing-read)
         (not (or (bound-and-true-p helm-mode)
                  (bound-and-true-p ivy-mode)
                  (bound-and-true-p selectrum-mode)
                  (bound-and-true-p vertico-mode)))))
  "Function used to determine whether to add default to prompt.

This is used by `magit-completing-read' (which see).

The default function returns nil, when a completion frameworks is used
for which this is undesirable.  More precisely, it returns nil, when
`magit-completing-read-function' is not `magit-builtin-completing-read',
or one of `helm-mode', `ivy-mode', `selectrum-mode' or `vertico-mode'
is enabled.  When this function returns nil, then nil is passed to
`format-prompt' (which see), instead of the default (DEF or FALLBACK).")