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)