aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles A. Roelli2017-12-26 12:46:39 +0100
committerCharles A. Roelli2017-12-26 12:46:39 +0100
commit9f9b56b7da323bc91cdde0bcc1e1863c523e7ee3 (patch)
tree1ccf6a78b084bc6919ff685e9d87f1c32ed08661
parent23ecd63ba498aa616e2a768090bca360e6d32309 (diff)
downloademacs-9f9b56b7da323bc91cdde0bcc1e1863c523e7ee3.tar.gz
emacs-9f9b56b7da323bc91cdde0bcc1e1863c523e7ee3.zip
Fix highlighting in query-replace with non-nil replace-char-fold
* lisp/replace.el (replace-highlight): Bind 'isearch-regexp-function' in the same way that function 'replace-search' does, so as to respect the value of 'replace-char-fold'. (Bug#24356)
-rw-r--r--lisp/replace.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 80e584517ce..396428f6f28 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2212,7 +2212,10 @@ It is called with three arguments, as if it were
2212 (if query-replace-lazy-highlight 2212 (if query-replace-lazy-highlight
2213 (let ((isearch-string search-string) 2213 (let ((isearch-string search-string)
2214 (isearch-regexp regexp-flag) 2214 (isearch-regexp regexp-flag)
2215 (isearch-regexp-function delimited-flag) 2215 (isearch-regexp-function (or delimited-flag
2216 (and replace-char-fold
2217 (not regexp-flag)
2218 #'char-fold-to-regexp)))
2216 (isearch-lax-whitespace 2219 (isearch-lax-whitespace
2217 replace-lax-whitespace) 2220 replace-lax-whitespace)
2218 (isearch-regexp-lax-whitespace 2221 (isearch-regexp-lax-whitespace