diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-10-21 17:07:08 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-10-21 17:11:09 +0100 |
commit | ab65b33f8c67d5341dae21fc03053e6202077d90 (patch) | |
tree | 0f175a887740e61717856e71c1e97f6c70b9d7d3 /lisp/cedet | |
parent | f6ece2420c3dc6f3dde06c7f8722f5b0b7e1ef4a (diff) | |
download | emacs-ab65b33f8c67d5341dae21fc03053e6202077d90.tar.gz emacs-ab65b33f8c67d5341dae21fc03053e6202077d90.tar.bz2 emacs-ab65b33f8c67d5341dae21fc03053e6202077d90.zip |
* lisp/isearch.el: Rename word search to regexp-function search
`isearch-word' went well beyond its original purpose, and the name
no longer makes sense. It is now called
`isearch-regexp-function', and it's value should always be a
function that converts a string to a regexp (though setting it to
t is still supported for now).
(isearch-word): Make obsolete.
(isearch-regexp-function): New variable.
(isearch-mode, isearch-done, isearch--state, isearch--set-state)
(with-isearch-suspended, isearch-toggle-regexp)
(isearch-toggle-word, isearch-toggle-symbol)
(isearch-toggle-character-fold, isearch-query-replace)
(isearch-occur, isearch-highlight-regexp)
(isearch-search-and-update, isearch-message-prefix)
(isearch-search-fun-default, isearch-search)
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
Use it.
(isearch-lazy-highlight-regexp-function): New var.
(isearch-lazy-highlight-word): Make obsolete.
(isearch--describe-regexp-mode): New function.
(isearch--describe-word-mode): Make obsolete.
* lisp/info.el (Info-isearch-search): Use the new var.
* lisp/replace.el (replace-search, replace-highlight): Use the new
var.
* lisp/obsolete/longlines.el (longlines-search-function): Use the
new var.
* lisp/hexl.el (hexl-isearch-search-function): Use the new var.
* lisp/cedet/semantic/senator.el (senator-isearch-search-fun): Use
the new var.
Diffstat (limited to 'lisp/cedet')
-rw-r--r-- | lisp/cedet/semantic/senator.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/cedet/semantic/senator.el b/lisp/cedet/semantic/senator.el index 372e1d920e7..544abff8dd1 100644 --- a/lisp/cedet/semantic/senator.el +++ b/lisp/cedet/semantic/senator.el @@ -813,7 +813,7 @@ Use a senator search function when semantic isearch mode is enabled." (concat (if senator-isearch-semantic-mode "senator-" "") - (cond (isearch-word "word-") + (cond (isearch-regexp-function "word-") (isearch-regexp "re-") (t "")) "search-" |