From b5f7706165cfd2ef2c865303fe4530699d33d41b Mon Sep 17 00:00:00 2001 From: viliaapro Date: Tue, 31 Dec 2024 14:07:43 +0200 Subject: [PATCH] Fix bug in rng-valid that unnecessarily marks buffer as changed --- lisp/nxml/rng-valid.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/nxml/rng-valid.el b/lisp/nxml/rng-valid.el index 9a44356835e..b533545c52c 100644 --- a/lisp/nxml/rng-valid.el +++ b/lisp/nxml/rng-valid.el @@ -545,7 +545,8 @@ rng-do-some-validation-1 ((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) -- 2.34.1