]> git.eshelyaron.com Git - emacs.git/commit
Remove aliases of `with-silent-modifications`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Oct 2022 16:25:09 +0000 (12:25 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Oct 2022 16:25:09 +0000 (12:25 -0400)
commit4840b91e41329cd1221e6224142af9ae13fd7606
treed5754fc6bad43232b04b88ac86e9e73bcbe7aa7c
parentd28581101adb967b32b2d1de93aba34ce69e15d2
Remove aliases of `with-silent-modifications`

There were many reinventions of `with-silent-modifications` (tho
many of them weren't reinventions but copy&paste of code from
font-lock, IIUC).  Now that those don't even need to let-bind
`inhibit-point-motion-hooks` they're really just obsolete.

* lisp/font-lock.el (save-buffer-state): Delete macro.
(font-lock-unfontify-region, font-lock-default-fontify-region):
Use `with-silent-modifications` instead.
(font-lock-after-change-function, font-lock-fontify-block): Don't
let-bind `inhibit-point-motion-hooks`.

* lisp/htmlfontify.el (hfy-save-buffer-state): Delete macro.
(hfy-mark-trailing-whitespace, hfy-unmark-trailing-whitespace):
Use `with-silent-modifications` instead.

* lisp/jit-lock.el (with-buffer-prepared-for-jit-lock): Delete macro.
(jit-lock--debug-fontify, jit-lock-refontify, jit-lock-function)
(jit-lock-fontify-now, jit-lock-force-redisplay)
(jit-lock-deferred-fontify, jit-lock-context-fontify)
(jit-lock-after-change): Use `with-silent-modifications` instead.

* lisp/progmodes/antlr-mode.el (save-buffer-state-x): Delete macro.
(antlr-hide-actions): Use `with-silent-modifications` instead.

* lisp/progmodes/hideshow.el (hs-life-goes-on): Don't
let-bind `inhibit-point-motion-hooks`.
lisp/font-lock.el
lisp/htmlfontify.el
lisp/jit-lock.el
lisp/progmodes/antlr-mode.el
lisp/progmodes/hideshow.el