From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51390: 29.0.50; repeat-mode: Fails to repeat keys in global-map(?) Date: Sun, 21 Nov 2021 03:21:58 +0100 (CET) Message-ID: 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> <86fsrqptnp.fsf@mail.linkov.net> Reply-To: Visuwesh Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51390 <51390@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 21 03:23:14 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 1mocVd-00072w-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 03:23:13 +0100 Original-Received: from localhost ([::1]:34702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mocVb-0005j0-NM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 21:23:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mocVS-0005ip-Hh for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 21:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mocVS-00029W-8t for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 21:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mocVS-0004wS-3F for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 21:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Nov 2021 02:23: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.163746132918910 (code B ref 51390); Sun, 21 Nov 2021 02:23:02 +0000 Original-Received: (at 51390) by debbugs.gnu.org; 21 Nov 2021 02:22:09 +0000 Original-Received: from localhost ([127.0.0.1]:43879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mocUb-0004uw-2L for submit@debbugs.gnu.org; Sat, 20 Nov 2021 21:22:09 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:44648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mocUW-0004uM-Mr for 51390@debbugs.gnu.org; Sat, 20 Nov 2021 21:22:07 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 9F628FA01B2; Sun, 21 Nov 2021 02:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1637461318; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=9FodOEdMCegTQlFI4xd5z2UHaPMy/IB5yT2sknNUd64=; b=fJ89FAV2L4vdSylYFL8pNZgSCMjlrqTSU1XGHcOrW7fDqUgY2kb4gQR3oiogt3ab 9to6wzL1nZjXc1cdiOlzGzTKNEYnc0BFZD9ffxstZ0LF8ZzfBm8+ozTTJQaYfWQod8m 4xtwU/gDgcZ6z+QO17RkW4Ge1+ue2PN1FkKC8qdCU54GbqJVZPO2IveuZrh+XSqrBUE ISaNICnA6bxh5cJZujT3+GSTr6Sflz92DHMkJhc/1/8LJqyMtFeVumGxL1G1NPBqP+g gnmWaAnZhrNiL065TuuaVCP8dLM+suH1Z96x0Tl53Iy4WdR5Nyr7tVoaNw2BZpnuSIP TyksbbRMrw== In-Reply-To: <86fsrqptnp.fsf@mail.linkov.net> 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:220528 Archived-At: 21 Nov 2021, 00:42 by juri@linkov.net: Hi Juri, >>>One problem I had with writing tests for such a feature =E2=80=94 tests = for repeat-mode >>>are based on =E2=80=98execute-kbd-macro=E2=80=99, but an error ends the = keyboard macro. >>>So probably there will be no tests for this error-signaling repeatable c= ommands. >> >> I wonder if the new mechanism added to ERT by Lars could be help here? >> (and used by the indentation tests)=C2=A0 But I suppose you still have t= o 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 =E2=80=98ert-simulate-= command=E2=80=99 > (after removing =E2=80=98(cl-assert (not unread-command-events) t)=E2=80= =99) and > =E2=80=98ert-simulate-keys=E2=80=99 (after adding =E2=80=98(noninteractiv= e nil)=E2=80=99 let-binding), > to no avail. I was thinking about grouping navigation commands that could `error' (like in OP and the outline commands) in a repeatable keymap and making use of Point-Char spec to test where the point ends up. But I suppose this wouldn't get us anywhere since you still have to "press" those keys somehow.