[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 3db6adb 2/4: * lisp/isearch.el (search-default-mo
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] emacs-25 3db6adb 2/4: * lisp/isearch.el (search-default-mode) |
Date: |
Sun, 07 Feb 2016 01:05:11 +0000 |
branch: emacs-25
commit 3db6adb174e4b3aa147fc7b260e5e401cb6069fc
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/isearch.el (search-default-mode)
(isearch-regexp-function): Improve docstrings.
---
lisp/isearch.el | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 1718096..6ef4f72 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -234,9 +234,9 @@ If t, default to regexp searches (as if typing
`\\[isearch-toggle-regexp]' durin
isearch).
If a function, use that function as an `isearch-regexp-function'.
-Example functions are `word-search-regexp' \(`\\[isearch-toggle-word]'),
-`isearch-symbol-regexp' \(`\\[isearch-toggle-symbol]'), and
-`character-fold-to-regexp' \(`\\[isearch-toggle-character-fold]')."
+Example functions (and the keys to toggle them during isearch)
+are `word-search-regexp' \(`\\[isearch-toggle-word]'), `isearch-symbol-regexp'
+\(`\\[isearch-toggle-symbol]'), and `character-fold-to-regexp'
\(`\\[isearch-toggle-character-fold]')."
;; :type is set below by `isearch-define-mode-toggle'.
:type '(choice (const :tag "Literal search" nil)
(const :tag "Regexp search" t)
@@ -558,7 +558,11 @@ If the value is a function (e.g. `isearch-symbol-regexp'),
it is
called to convert a plain search string to a regexp used by
regexp search functions.
The symbol property `isearch-message-prefix' put on this function
-specifies the prefix string displayed in the search message.")
+specifies the prefix string displayed in the search message.
+
+This variable is set and changed during isearch. To change the
+default behaviour used for searches, see `search-default-mode'
+instead.")
;; We still support setting this to t for backwards compatibility.
(define-obsolete-variable-alias 'isearch-word
'isearch-regexp-function "25.1")