diff --git a/lisp/nxml/rng-valid.el b/lisp/nxml/rng-valid.el index a4795d3b1a0..3407618b258 100644 --- a/lisp/nxml/rng-valid.el +++ b/lisp/nxml/rng-valid.el @@ -545,7 +545,8 @@ Return t if there is work to do, nil otherwise." ((or (>= pos next-cache-point) (not continue)) (setq next-cache-point (+ pos rng-state-cache-distance)) - (rng-clear-cached-state remove-start pos) + (with-silent-modifications + (rng-clear-cached-state remove-start pos)) (when have-remaining-chars (rng-cache-state (1- pos))) (setq remove-start pos)