Ihor Radchenko <yanta...@gmail.com> writes: > Confirmed > However, I can only trigger the warning up to Emacs 27. Emacs 28 and > later has no issue. > > Need to investigate further.
Fixed via c3f457375. This is another case when Emacs internals (replace-match) increase buffer-chars-modified-tick. Eventually, this warning should be disabled and we need to make a patch for Emacs to trigger cache updates regardless of inhibit-modification-hooks. See https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-11/msg01069.html Best, Ihor