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#59539: 29.0.50; Commands created with `insert-kbd-macro` are NOT getting repeated. Date: Thu, 15 Dec 2022 09:20:31 +0200 Organization: LINKOV.NET Message-ID: <86tu1xjh1o.fsf@mail.linkov.net> References: <87v8mdoqn4.fsf@gmail.com> 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="21435"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 59539@debbugs.gnu.org, Ramesh Nedunchezian To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 08:33:02 2022 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 1p5ijm-0005Q3-7k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 08:33:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5ij7-0002uT-V3; Thu, 15 Dec 2022 02:32:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5iiq-0002rR-Pr for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 02:32:17 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5iio-0001Fg-4p for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 02:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5iin-0007hJ-VF for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 02:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 07:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59539 X-GNU-PR-Package: emacs Original-Received: via spool by 59539-submit@debbugs.gnu.org id=B59539.167108947229550 (code B ref 59539); Thu, 15 Dec 2022 07:32:01 +0000 Original-Received: (at 59539) by debbugs.gnu.org; 15 Dec 2022 07:31:12 +0000 Original-Received: from localhost ([127.0.0.1]:42439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5ihy-0007gT-1A for submit@debbugs.gnu.org; Thu, 15 Dec 2022 02:31:12 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5ihr-0007fv-D7 for 59539@debbugs.gnu.org; Thu, 15 Dec 2022 02:31:08 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E607C4000A; Thu, 15 Dec 2022 07:30:55 +0000 (UTC) In-Reply-To: <87v8mdoqn4.fsf@gmail.com> (Robert Pluim's message of "Wed, 14 Dec 2022 18:13:03 +0100") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251028 Archived-At: > Ramesh> (defalias 'my-cmd-a > Ramesh>   (kmacro "C-f C-f")) > > Ramesh> (defalias 'my-cmd-b > Ramesh>   (kmacro "C-b C-b")) > > Ramesh> (define-key my-kmacro-keymap (kbd "a") #'my-cmd-a) > Ramesh> (define-key my-kmacro-keymap (kbd "b") #'my-cmd-b) > > Hmm, with your recipe on emacs master, " b" repeats, but " > a" doesnʼt. I have no clue why, they call the same underlying > infrastructure. Sorry, I missed this bug report. This is because 'repeat-check-key' is t by default so that unrelated key sequences, for example, 'C-_' should not activate the repeat map for 'undo', only 'C-x u' should. When the user types 'a', the real key from kmacro is 'C-f'. There is no 'f' in the keymap above, so it's ignored, when 'repeat-check-key' is not customized to nil. Do you have an idea how to do the right thing and to guess the user's intention without checking if there are the same keys in the keymap?