Subject: bug#73018: 31.0.50; wdired + replace-regexp only modifies the visible portion of the buffer

From: Madhu <[email-masked]>
Date: Mon, 16 Sep 2024 07:36:11 +0530 (IST)

fwiw in a build on master with the earlier patch i posted (which turns
on font-lock-mode, admittedly overkill), and the autoload cookie patch
(attached) and a fresh compile I do not seem to trigger the
replace-match error (with the wdired recipe)

>From 41e4505815f58ee69255801a55dc07394f729930 Mon Sep 17 00:00:00 2001
From: Madhu <[email-masked]>
Date: Wed, 4 Sep 2024 15:05:26 +0530
Subject: [PATCH] lisp/wdired.el: (wdired--before-change-fn): autoload cookie
 prevents a "match data clobbered" error

---
 lisp/wdired.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/wdired.el b/lisp/wdired.el
index dd8b8640a89..6f1f7b06e35 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -306,6 +306,7 @@ wdired--self-insert
 
 (put 'wdired--self-insert 'delete-selection 'delete-selection-uses-region-p)
 
+;;;###autoload
 (defun wdired--before-change-fn (beg end)
   (save-match-data
     (save-excursion
-- 
2.46.0.27.gfa3b914457