GNU bug report logs - #56210
29.0.50; Keyboard macros do not trigger after-change-functions

Previous Next

Package: emacs;

Reported by: Richard Hansen <rhansen <at> rhansen.org>

Date: Sat, 25 Jun 2022 06:23:02 UTC

Severity: normal

Found in version 29.0.50

Done: Richard Hansen <rhansen <at> rhansen.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Hansen <rhansen <at> rhansen.org>
Cc: 56210 <at> debbugs.gnu.org
Subject: bug#56210: 29.0.50; Keyboard macros do not trigger after-change-functions
Date: Sat, 25 Jun 2022 13:51:32 +0200
Richard Hansen <rhansen <at> 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




This bug report was last modified 2 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.