aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-09-07 11:56:16 +0300
committerEli Zaretskii2023-09-07 11:56:16 +0300
commit2e5511c5aafd303e35d54556b312e7f09da67aa5 (patch)
treebcc17b7d9d433498776548cb4ab458fdd0851e45
parent2992b99aab0f0b77b8724088f3299929961d2350 (diff)
downloademacs-2e5511c5aafd303e35d54556b312e7f09da67aa5.tar.gz
emacs-2e5511c5aafd303e35d54556b312e7f09da67aa5.zip
; Fix documentation of last change
* lisp/minibuffer.el (minibuffer-regexp-prompts): * doc/lispref/minibuf.texi (Minibuffer Misc): Fix docs (bug#50766).
-rw-r--r--doc/lispref/minibuf.texi23
-rw-r--r--lisp/minibuffer.el11
2 files changed, 19 insertions, 15 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 0b877a25e68..66191243702 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -2879,19 +2879,20 @@ if the minibuffer is in a separate frame. @xref{Minibuffers and Frames}.
2879@end deffn 2879@end deffn
2880 2880
2881@deffn Command minibuffer-regexp-mode 2881@deffn Command minibuffer-regexp-mode
2882This is a minor mode for editing regular expressions in the minibuffer. 2882This minor mode makes editing regular expressions in the minibuffer
2883It highlight parens via @code{show-paren-mode} and 2883more convenient. It highlight parens via @code{show-paren-mode} and
2884@code{blink-matching-paren} in a user-friendly way, avoids reporting 2884@code{blink-matching-paren} in a user-friendly way, avoids reporting
2885alleged paren mismatches and makes sexp navigation more intuitive. 2885false paren mismatches, and makes sexp navigation more intuitive.
2886
2887The list of prompts activating this mode in specific minibuffer
2888interactions is customizable via @code{minibuffer-regexp-prompts}, see
2889below.
2890@end deffn 2886@end deffn
2891 2887
2888By default, only certain minibuffer prompts automatically activate the
2889convenience features of @code{minibuffer-regexp-mode} when the
2890minibuffer becomes active. This list of prompts can be customized via
2891@code{minibuffer-regexp-prompts}.
2892
2892@defopt minibuffer-regexp-prompts 2893@defopt minibuffer-regexp-prompts
2893List of minibuffer prompts that trigger @code{minibuffer-regexp-mode}. 2894This variable holds the list of regular expressions for activating the
2894@code{minibuffer-regexp-mode} is activated in a specific minibuffer 2895features of @code{minibuffer-regexp-mode} in the minibuffer. The
2895interaction if and only if a prompt in this list appears at the 2896mode's features will be activated only if the minibuffer prompt
2896beginning of the minibuffer. 2897matches one of the regular expressions in the list.
2897@end defopt 2898@end defopt
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index d43201eb36d..8c642b15a4d 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -4759,10 +4759,13 @@ and `blink-matching-paren' more user-friendly."
4759 4759
4760(defcustom minibuffer-regexp-prompts 4760(defcustom minibuffer-regexp-prompts
4761 '("Posix search" "RE search" "Search for regexp" "Query replace regexp") 4761 '("Posix search" "RE search" "Search for regexp" "Query replace regexp")
4762 "List of minibuffer prompts that trigger `minibuffer-regexp-mode'. 4762 "List of regular expressions that trigger `minibuffer-regexp-mode' features.
4763`minibuffer-regexp-mode' is activated in a specific minibuffer 4763The features of `minibuffer-regexp-mode' will be activated in a minibuffer
4764interaction if and only if a prompt in this list appears at the 4764interaction if and only if a prompt matching some regexp in this list
4765beginning of the minibuffer." 4765appears at the beginning of the minibuffer.
4766
4767Setting this variable directly with `setq' has no effect; instead,
4768either use \\[customize-option] interactively or use `setopt'."
4766 :type '(repeat (string :tag "Prompt")) 4769 :type '(repeat (string :tag "Prompt"))
4767 :set (lambda (sym val) 4770 :set (lambda (sym val)
4768 (set-default sym val) 4771 (set-default sym val)