summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2011-10-24 08:56:04 +0300
committerJuri Linkov <juri@jurta.org>2011-10-24 08:56:04 +0300
commit1e1fcbea221d49a93dcf290911469ecfa194aff8 (patch)
treee8911fef5ef9910b6831bbf7bc513e59982a1d4c /lisp/isearch.el
parentefc217903985b1c089a029387c5b87a8d9ab0af0 (diff)
downloademacs-1e1fcbea221d49a93dcf290911469ecfa194aff8.tar.gz
* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
`search-whitespace-regexp' only when `isearch-regexp' is non-nil.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el2
1 files changed, 1 insertions, 1 deletions
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" ())