bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#56210: 29.0.50; Keyboard macros do not trigger after-change-functions
Date: Sat, 25 Jun 2022 13:51:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Richard Hansen <rhansen@rhansen.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]