]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug in 'rng-valid' that unnecessarily marks buffer as modified
authorviliaapro <vili.aapro@iki.fi>
Tue, 31 Dec 2024 12:07:43 +0000 (14:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 Jan 2025 08:33:48 +0000 (09:33 +0100)
* 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

index a4795d3b1a0eea44daf58b261b703b8ca802498c..3407618b2587bcfcf6eb7fec9afee5fb9369fe11 100644 (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)