|
From: | Juri Linkov |
Subject: | bug#51390: 29.0.50; repeat-mode: Fails to repeat keys in global-map(?) |
Date: | Sat, 20 Nov 2021 21:12:46 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>>One problem I had with writing tests for such a feature — tests for >>repeat-mode >>are based on ‘execute-kbd-macro’, but an error ends the keyboard macro. >>So probably there will be no tests for this error-signaling repeatable >>commands. > > I wonder if the new mechanism added to ERT by Lars could be help here? > (and used by the indentation tests) But I suppose you still have to end > up using keyboard macros one way or another... I don't know how buffer-based ERT fixtures could help to test repeatable key sequences. What I rather tried to do is to use ‘ert-simulate-command’ (after removing ‘(cl-assert (not unread-command-events) t)’) and ‘ert-simulate-keys’ (after adding ‘(noninteractive nil)’ let-binding), to no avail.
[Prev in Thread] | Current Thread | [Next in Thread] |