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


Message #41 received at 56210 <at> debbugs.gnu.org (full text, mbox):

From: Richard Hansen <rhansen <at> rhansen.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 56210 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: Re: bug#56210: 29.0.50; Keyboard macros do not trigger
 after-change-functions
Date: Mon, 27 Jun 2022 13:23:28 -0400
[Message part 1 (text/plain, inline)]
On 6/27/22 13:07, Richard Hansen wrote:
> On 6/27/22 12:54, Eli Zaretskii wrote:
>> Your test calls with-current-buffer-window, which calls 
>> temp-buffer-window-setup, which inhibits modification hooks:
> 
> Yup, that's it!  If I set `inhibit-modification-hooks' back to nil 
> then it works.  Thank you.

However, that doesn't explain why the original test code fails.  If you add a `(should (null inhibit-modification-hooks))` just before the call to `execute-kbd-macro' it will not fail there.

But that original test code is incorrect anyway (the selected window is not explicitly switched to the temporary buffer before running the keyboard macro), so it doesn't really matter to me.
[OpenPGP_signature (application/pgp-signature, attachment)]

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.