From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51390: 29.0.50; repeat-mode: Fails to repeat keys in global-map(?) Date: Sat, 20 Nov 2021 21:12:46 +0200 Organization: LINKOV.NET Message-ID: <86fsrqptnp.fsf@mail.linkov.net> References: <87o87dvxbp.fsf@mail.linkov.net> <874k95vw63.fsf@mail.linkov.net> <86y25p6yhq.fsf@mail.linkov.net> <86r1bfoowu.fsf@mail.linkov.net> <8635nv9rtc.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9472"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51390 <51390@debbugs.gnu.org> To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 20 20:20:41 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moVuj-0002Is-It for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 20:20:41 +0100 Original-Received: from localhost ([::1]:46202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moVuh-0007kZ-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 14:20:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moVu8-0007Gu-2J for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 14:20:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moVu7-0005YD-1p for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 14:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moVu6-0003pz-Td for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 14:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Nov 2021 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51390 X-GNU-PR-Package: emacs Original-Received: via spool by 51390-submit@debbugs.gnu.org id=B51390.163743598114693 (code B ref 51390); Sat, 20 Nov 2021 19:20:02 +0000 Original-Received: (at 51390) by debbugs.gnu.org; 20 Nov 2021 19:19:41 +0000 Original-Received: from localhost ([127.0.0.1]:43690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moVtl-0003ov-3D for submit@debbugs.gnu.org; Sat, 20 Nov 2021 14:19:41 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:59205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moVti-0003oa-QF for 51390@debbugs.gnu.org; Sat, 20 Nov 2021 14:19:39 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 5E818240002; Sat, 20 Nov 2021 19:19:30 +0000 (UTC) In-Reply-To: (visuwesh@tutanota.com's message of "Sat, 20 Nov 2021 14:23:43 +0100 (CET)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220519 Archived-At: >>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.