aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/replace.el6
-rw-r--r--lisp/term/tty-colors.el2
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 9d1b7bf747d..db305adfd38 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2316,7 +2316,11 @@ It is called with three arguments, as if it were
2316 (isearch-forward (not backward)) 2316 (isearch-forward (not backward))
2317 (isearch-other-end match-beg) 2317 (isearch-other-end match-beg)
2318 (isearch-error nil)) 2318 (isearch-error nil))
2319 (isearch-lazy-highlight-new-loop range-beg range-end)))) 2319 (save-match-data
2320 ;; Preserve match-data for perform-replace since
2321 ;; isearch-lazy-highlight-new-loop calls `sit-for' that
2322 ;; does redisplay that might clobber match data (bug#36328).
2323 (isearch-lazy-highlight-new-loop range-beg range-end)))))
2320 2324
2321(defun replace-dehighlight () 2325(defun replace-dehighlight ()
2322 (when replace-overlay 2326 (when replace-overlay
diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el
index 307586f2213..5af8170203e 100644
--- a/lisp/term/tty-colors.el
+++ b/lisp/term/tty-colors.el
@@ -820,7 +820,7 @@ Value is the modified color alist for FRAME."
820 "Return COLOR in canonical form. 820 "Return COLOR in canonical form.
821A canonicalized color name is all-lower case, with any blanks removed." 821A canonicalized color name is all-lower case, with any blanks removed."
822 (let ((case-fold-search nil)) 822 (let ((case-fold-search nil))
823 (if (string-match "[A-Z ]" color) 823 (if (string-match-p "[A-Z ]" color)
824 (replace-regexp-in-string " +" "" (downcase color)) 824 (replace-regexp-in-string " +" "" (downcase color))
825 color))) 825 color)))
826 826