Variable: minibuffer-regexp-prompts
minibuffer-regexp-prompts is a customizable variable defined in
minibuffer.el.gz.
Value
("Posix search" "RE search" "Search for regexp" "Query replace regexp")
Documentation
List of regular expressions that trigger minibuffer-regexp-mode(var)/minibuffer-regexp-mode(fun) features.
The features of minibuffer-regexp-mode(var)/minibuffer-regexp-mode(fun) will be activated in a minibuffer
interaction if and only if a prompt matching some regexp in this list
appears at the beginning of the minibuffer.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defcustom minibuffer-regexp-prompts
'("Posix search" "RE search" "Search for regexp" "Query replace regexp")
"List of regular expressions that trigger `minibuffer-regexp-mode' features.
The features of `minibuffer-regexp-mode' will be activated in a minibuffer
interaction if and only if a prompt matching some regexp in this list
appears at the beginning of the minibuffer."
:type '(repeat (string :tag "Prompt"))
:set (lambda (sym val)
(set-default sym val)
(when val
(setq minibuffer--regexp-prompt-regexp
(concat "\\(?:" (mapconcat 'regexp-quote val "\\|") "\\)"))))
:version "30.1")