From 65059ae42c612e8751978e0dc22c51939181225e 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 modified * lisp/nxml/rng-valid.el (rng-do-some-validation-1): Use 'with-silent-modifications'. (Bug#75224) Copyright-paperwork-exempt: yes (cherry picked from commit bc1a544b524f0c11a131f34a81a11fc59b1fdd1e) --- 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 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) -- 2.39.5