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:
parent
c6d0c2eec3
commit
bc1a544b52
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue