Variable: minibuffer-default-in-prompt-regexps

minibuffer-default-in-prompt-regexps is a variable defined in minibuf-eldef.el.gz.

Value

(("\\( (default \\(.*?\\))\\): " 1 nil)
 ("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'" 1 nil)
 ("([^(]+?\\(, default\\(?: is\\)? \\(.*\\)\\)):? \\'" 1)
 ("\\( \\[.*\\]\\):? *\\'" 1))

Documentation

A list of regexps matching the parts of minibuffer prompts showing defaults.

When minibuffer-electric-default-mode(var)/minibuffer-electric-default-mode(fun) is active, these regexps are used to identify the portions of prompts to elide.

Each entry is of the form (REGEXP MATCH-NUM &optional REWRITE), where REGEXP should match the default part of the prompt, MATCH-NUM is the subgroup that matched the actual default indicator, and REWRITE, if present, is a string to pass to replace-match that should be displayed in its place.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuf-eldef.el.gz
(defvar minibuffer-default-in-prompt-regexps
  (minibuffer-default--in-prompt-regexps)
  "A list of regexps matching the parts of minibuffer prompts showing defaults.
When `minibuffer-electric-default-mode' is active, these regexps are
used to identify the portions of prompts to elide.

Each entry is of the form (REGEXP MATCH-NUM &optional REWRITE),
where REGEXP should match the default part of the prompt,
MATCH-NUM is the subgroup that matched the actual default indicator,
and REWRITE, if present, is a string to pass to `replace-match' that
should be displayed in its place.")