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: Mon, 25 Oct 2021 20:16:58 +0300 Organization: LINKOV.NET Message-ID: <87o87dvxbp.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13329"; 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: visuwesh@tutanota.com To: 51390@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 19:19:13 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 1mf3cu-0003GY-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 19:19:12 +0200 Original-Received: from localhost ([::1]:49008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf3cs-0002Wo-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 13:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf3ck-0002Th-N5 for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 13:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf3ck-0006hK-Dz for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 13:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mf3ck-00035o-7d for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 13:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51390 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Visuwesh via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 51390@debbugs.gnu.org, Visuwesh Original-Received: via spool by 51390-submit@debbugs.gnu.org id=B51390.163518232211846 (code B ref 51390); Mon, 25 Oct 2021 17:19:02 +0000 Original-Received: (at 51390) by debbugs.gnu.org; 25 Oct 2021 17:18:42 +0000 Original-Received: from localhost ([127.0.0.1]:44177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf3cP-00034z-N4 for submit@debbugs.gnu.org; Mon, 25 Oct 2021 13:18:41 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:56123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf3cO-00034e-4c for 51390@debbugs.gnu.org; Mon, 25 Oct 2021 13:18:40 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 760E8240007; Mon, 25 Oct 2021 17:18:32 +0000 (UTC) In-Reply-To: (Visuwesh via's message of "Mon, 25 Oct 2021 18:32:33 +0200 (CEST)") 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:218327 Archived-At: > I'm trying to make next/previous-line repeatable by using the follow > code snippet, > > (defvar teest > (let ((map (make-sparse-keymap))) > (define-key map "n" #'next-line) > (define-key map "p" #'previous-line) > map)) > > To reproduce the issue, > > 1. emacs -Q > 2. Evaluate the expressions in this message. Turn on repeat-mode. > 3. Switch to the *scratch* buffer and press M-<. > 4. Type C-n. Notice that it does not trigger the repeat map. > 5. Type C-p twice. The repeat map gets triggered in the second keypress > i.e., when the point is at the first line. This is because currently only the last character of the initial key sequence is allowed to be repeated. The initial key was "C-n" and the repeat key is "n" - it's not the same key. This condition was added to repeat only such key sequences 'C-x u u u u ...', but not 'C-/ u u u u ...'. Now addition of a new option is underway. It will allow customization of such preference.