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
This commit is contained in:
viliaapro 2024-12-31 14:07:43 +02:00 committed by Eli Zaretskii
parent c6d0c2eec3
commit bc1a544b52

View file

@ -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)