diff options
| author | Eli Zaretskii | 2019-05-03 12:22:55 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-05-03 12:22:55 +0300 |
| commit | d5497ec3096b3ff42fd1028b5a677cafa6386712 (patch) | |
| tree | 0927d9684cd1596932500507e45e8bed611ca34d | |
| parent | 8b0cb7b261b5b5443413aac65dcfc7a934838f90 (diff) | |
| download | emacs-d5497ec3096b3ff42fd1028b5a677cafa6386712.tar.gz emacs-d5497ec3096b3ff42fd1028b5a677cafa6386712.zip | |
Improve documentation of 'isearch-regexp-function'
* lisp/isearch.el (isearch-regexp-function): Doc fix.
(Bug#35498)
| -rw-r--r-- | lisp/isearch.el | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 6280afebdc5..bb29c2914be 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -832,12 +832,20 @@ This is like `describe-bindings', but displays only Isearch keys." | |||
| 832 | 'isearch-regexp-function "25.1") | 832 | 'isearch-regexp-function "25.1") |
| 833 | (defvar isearch-regexp-function nil | 833 | (defvar isearch-regexp-function nil |
| 834 | "Regexp-based search mode for words/symbols. | 834 | "Regexp-based search mode for words/symbols. |
| 835 | If the value is a function (e.g. `isearch-symbol-regexp'), it is | 835 | If non-nil, a function to convert a search string to a regexp |
| 836 | called to convert a plain search string to a regexp used by | 836 | used by regexp search functions. |
| 837 | regexp search functions. | 837 | |
| 838 | The function should accept 1 or 2 arguments: the original string | ||
| 839 | to convert, and a flag, whose non-nil value means the match | ||
| 840 | doesn't have to start or end on a word boundary. The function | ||
| 841 | should return the corresponding regexp, a string. | ||
| 842 | |||
| 838 | The symbol property `isearch-message-prefix' put on this function | 843 | The symbol property `isearch-message-prefix' put on this function |
| 839 | specifies the prefix string displayed in the search message. | 844 | specifies the prefix string displayed in the search message. |
| 840 | 845 | ||
| 846 | Existing functions you could use as values are `word-search-regexp', | ||
| 847 | `isearch-symbol-regexp', and `char-fold-to-regexp'. | ||
| 848 | |||
| 841 | This variable is set and changed during isearch. To change the | 849 | This variable is set and changed during isearch. To change the |
| 842 | default behavior used for searches, see `search-default-mode' | 850 | default behavior used for searches, see `search-default-mode' |
| 843 | instead.") | 851 | instead.") |