(message-hide-headers): Don't bind inhibit-modification-hooks

This binding dates back at least to 2004 (where we bound
`after-change-functions` instead).  Maybe it had a real impact in the past,
but nowadays I can't see any effect other than maybe a negligible
performance improvement at the cost at breaking some uses of
`before-after-change-functions`.

* lisp/gnus/message.el (message-hide-headers):
Don't bind `inhibit-modification-hooks`.
This commit is contained in:
Stefan Monnier 2024-08-28 15:33:05 -04:00
parent 1ae861ad7e
commit 10802fb00f

View file

@ -8612,7 +8612,6 @@ From headers in the original article."
(let ((regexps (if (stringp message-hidden-headers)
(list message-hidden-headers)
message-hidden-headers))
(inhibit-modification-hooks t)
end-of-headers)
(when regexps
(save-excursion