From 19fada58e2a982024ae31272cc054af80961eb37 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Wed, 21 Oct 2015 17:16:36 +0100 Subject: [PATCH] * lisp/isearch.el: Support lax-whitespace in regexp-function searches (isearch-search-fun-default): Let-bind `search-spaces-regexp' around `isearch-regexp-function'. --- lisp/isearch.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index 26e6eb1d7d4..61ae42e16f8 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2621,7 +2621,9 @@ Can be changed via `isearch-search-fun-function' for special needs." (null (car isearch-cmds)) (eq (length isearch-string) (length (isearch--state-string - (car isearch-cmds)))))))) + (car isearch-cmds))))))) + (search-spaces-regexp (when isearch-lax-whitespace + search-whitespace-regexp))) (funcall (if isearch-forward #'re-search-forward #'re-search-backward) (if (functionp isearch-regexp-function) -- 2.39.2