Subject: bug#56210: 29.0.50; Keyboard macros do not trigger after-change-functions

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 25 Jun 2022 13:51:32 +0200

Richard Hansen <[email-masked]> writes:

> Modifying a buffer via a keyboard macro does not seem to run the
> `after-change-functions' buffer modification hook, at least not in a
> batch `ert' test.

I think there might be some confusion about what the current buffer is.
If you eval this in *scratch*:

(with-temp-buffer
  (execute-kbd-macro (kbd "x")))

You'll end up with an "x" in *scratch* buffer, not in the *temp* buffer.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no