]> git.eshelyaron.com Git - emacs.git/commitdiff
(message-hide-headers): Don't bind `inhibit-modification-hooks`
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 Aug 2024 19:33:05 +0000 (15:33 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:41 +0000 (09:51 +0200)
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`.

(cherry picked from commit 10802fb00f59594fa8e524e836eaf0e99e87dec9)

lisp/gnus/message.el

index be0993b5499a18fb747fe0f938c2b0e06b5b0c07..766f58fdf4d053ad3b57fa24a347991d58eea17d 100644 (file)
@@ -8581,7 +8581,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