From 35262a7cb5dc600b13fbe55c3006c0f3daebdb60 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 28 Aug 2024 15:33:05 -0400 Subject: [PATCH] (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`. (cherry picked from commit 10802fb00f59594fa8e524e836eaf0e99e87dec9) --- lisp/gnus/message.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index be0993b5499..766f58fdf4d 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -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 -- 2.39.5