diff options
| author | Eli Zaretskii | 2023-09-07 11:56:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-09-07 11:56:16 +0300 |
| commit | 2e5511c5aafd303e35d54556b312e7f09da67aa5 (patch) | |
| tree | bcc17b7d9d433498776548cb4ab458fdd0851e45 | |
| parent | 2992b99aab0f0b77b8724088f3299929961d2350 (diff) | |
| download | emacs-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.texi | 23 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 11 |
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 |
| 2882 | This is a minor mode for editing regular expressions in the minibuffer. | 2882 | This minor mode makes editing regular expressions in the minibuffer |
| 2883 | It highlight parens via @code{show-paren-mode} and | 2883 | more 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 |
| 2885 | alleged paren mismatches and makes sexp navigation more intuitive. | 2885 | false paren mismatches, and makes sexp navigation more intuitive. |
| 2886 | |||
| 2887 | The list of prompts activating this mode in specific minibuffer | ||
| 2888 | interactions is customizable via @code{minibuffer-regexp-prompts}, see | ||
| 2889 | below. | ||
| 2890 | @end deffn | 2886 | @end deffn |
| 2891 | 2887 | ||
| 2888 | By default, only certain minibuffer prompts automatically activate the | ||
| 2889 | convenience features of @code{minibuffer-regexp-mode} when the | ||
| 2890 | minibuffer 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 |
| 2893 | List of minibuffer prompts that trigger @code{minibuffer-regexp-mode}. | 2894 | This variable holds the list of regular expressions for activating the |
| 2894 | @code{minibuffer-regexp-mode} is activated in a specific minibuffer | 2895 | features of @code{minibuffer-regexp-mode} in the minibuffer. The |
| 2895 | interaction if and only if a prompt in this list appears at the | 2896 | mode's features will be activated only if the minibuffer prompt |
| 2896 | beginning of the minibuffer. | 2897 | matches 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 | 4763 | The features of `minibuffer-regexp-mode' will be activated in a minibuffer |
| 4764 | interaction if and only if a prompt in this list appears at the | 4764 | interaction if and only if a prompt matching some regexp in this list |
| 4765 | beginning of the minibuffer." | 4765 | appears at the beginning of the minibuffer. |
| 4766 | |||
| 4767 | Setting this variable directly with `setq' has no effect; instead, | ||
| 4768 | either 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) |