From db2440b6ccf1a9c098d2c00ef4218a1542f8c8f8 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 24 Oct 2011 08:56:04 +0300 Subject: [PATCH] * lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to `search-whitespace-regexp' only when `isearch-regexp' is non-nil. Fixes: debbugs:9364 --- lisp/ChangeLog | 6 ++++++ lisp/isearch.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 264a4e8a7e8..b20ebccea89 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2011-10-24 Juri Linkov + + * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to + `search-whitespace-regexp' only when `isearch-regexp' is non-nil. + (Bug#9364) + 2011-10-24 Juri Linkov * info.el (Info-following-node-name-re): Add newline to the list diff --git a/lisp/isearch.el b/lisp/isearch.el index 6cfcce59672..6bb23916da3 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1452,7 +1452,7 @@ string. NLINES has the same meaning as in `occur'." ;; Set `search-upper-case' to nil to not call ;; `isearch-no-upper-case-p' in `occur-1'. (search-upper-case nil) - (search-spaces-regexp search-whitespace-regexp)) + (search-spaces-regexp (if isearch-regexp search-whitespace-regexp))) (occur regexp nlines))) (declare-function hi-lock-read-face-name "hi-lock" ()) -- 2.39.5