diff --git a/lisp/replace.el b/lisp/replace.el index 1bf134302e4..74909efa380 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -156,6 +156,8 @@ wants to replace FROM with TO." ;; unavailable while preparing to dump. (custom-reevaluate-setting 'query-replace-from-to-separator) (let* ((history-add-new-input nil) + (text-property-default-nonsticky + (cons '(separator . t) text-property-default-nonsticky)) (separator (when query-replace-from-to-separator (propertize "\0"