* lisp/replace.el (replace-lax-whitespace): New defcustom.
authorJuri Linkov <juri@jurta.org>
Thu, 6 Sep 2012 08:49:40 +0000 (11:49 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 6 Sep 2012 08:49:40 +0000 (11:49 +0300)
commit826b32357739a0ce755a5a2cadb3552b6914f4b3
treef3c12a09915521f9cb00c852cb0eb19ee165772e
parent1ec5e41d0ec506abe02ac223596430f98cb3b951
* lisp/replace.el (replace-lax-whitespace): New defcustom.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(replace-string, replace-regexp): Mention it in docstrings.
(perform-replace, replace-highlight): Let-bind
isearch-lax-whitespace and isearch-regexp-lax-whitespace according
to the values of replace-lax-whitespace and regexp-flag.
Don't let-bind search-whitespace-regexp.

* lisp/isearch.el (isearch-query-replace): Let-bind
replace-lax-whitespace instead of let-binding
replace-search-function and replace-re-search-function.
(isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
and isearch-regexp-lax-whitespace to lazy-highlight variables.
(isearch-toggle-symbol): Set isearch-regexp to nil
in isearch-word mode (like in isearch-toggle-word).

Fixes: debbugs:10885
etc/NEWS
lisp/ChangeLog
lisp/isearch.el
lisp/replace.el