From 60e1dfd82061dd8afd02d70844a03bc8a2ab7792 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Fri, 27 Nov 2015 11:23:35 +0000 Subject: [PATCH] * 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) --- lisp/isearch.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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'." (length succ-msg) 0)))) +(defvar isearch-new-regexp-function nil + "Holds the next `isearch-regexp-function' inside `with-isearch-suspended'. +If this is set inside code wrapped by the macro +`with-isearch-suspended', then the value set will be used as the +`isearch-regexp-function' once isearch resumes.") +(define-obsolete-variable-alias 'isearch-new-word + 'isearch-new-regexp-function "25.1") + (defmacro with-isearch-suspended (&rest body) "Exit Isearch mode, run BODY, and reinvoke the pending search. You can update the global isearch variables by setting new values to -- 2.39.5