aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-11-27 11:23:35 +0000
committerArtur Malabarba2015-11-27 11:25:57 +0000
commit60e1dfd82061dd8afd02d70844a03bc8a2ab7792 (patch)
tree8ba002e80fd6b03678d53a937e3189ab78eec252
parent9a57376b13aa816baa4bf3c19e92983642517308 (diff)
downloademacs-60e1dfd82061dd8afd02d70844a03bc8a2ab7792.tar.gz
emacs-60e1dfd82061dd8afd02d70844a03bc8a2ab7792.zip
* lisp/isearch.el: Ensure we still support `isearch-new-word'
(isearch-new-regexp-function): Define variable. (isearch-new-word): Define as an obsolete alias. (Bug#22018)
-rw-r--r--lisp/isearch.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 0a6b925d03e..65f8d6fb925 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1213,6 +1213,14 @@ If MSG is non-nil, use variable `isearch-message', otherwise `isearch-string'."
1213 (length succ-msg) 1213 (length succ-msg)
1214 0)))) 1214 0))))
1215 1215
1216(defvar isearch-new-regexp-function nil
1217 "Holds the next `isearch-regexp-function' inside `with-isearch-suspended'.
1218If this is set inside code wrapped by the macro
1219`with-isearch-suspended', then the value set will be used as the
1220`isearch-regexp-function' once isearch resumes.")
1221(define-obsolete-variable-alias 'isearch-new-word
1222 'isearch-new-regexp-function "25.1")
1223
1216(defmacro with-isearch-suspended (&rest body) 1224(defmacro with-isearch-suspended (&rest body)
1217 "Exit Isearch mode, run BODY, and reinvoke the pending search. 1225 "Exit Isearch mode, run BODY, and reinvoke the pending search.
1218You can update the global isearch variables by setting new values to 1226You can update the global isearch variables by setting new values to