GNU bug report logs - #59539
29.0.50; Commands created with `insert-kbd-macro` are NOT getting repeated.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Ramesh Nedunchezian <rameshnedunchezian@HIDDEN>; dated Thu, 24 Nov 2022 11:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Nov 2022 10:59:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 24 05:59:07 2022
Received: from localhost ([127.0.0.1]:57482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oy9wh-00078J-IT
	for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 05:59:07 -0500
Received: from lists.gnu.org ([209.51.188.17]:53426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rameshnedunchezian@HIDDEN>) id 1oy9we-000789-Om
 for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 05:59:06 -0500
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 <rameshnedunchezian@HIDDEN>)
 id 1oy9wd-0006MY-2N
 for bug-gnu-emacs@HIDDEN; Thu, 24 Nov 2022 05:59:04 -0500
Received: from mail-tyzapc01olkn2090.outbound.protection.outlook.com
 ([40.92.107.90] helo=APC01-TYZ-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rameshnedunchezian@HIDDEN>)
 id 1oy9wY-0001UB-Ne
 for bug-gnu-emacs@HIDDEN; Thu, 24 Nov 2022 05:59:01 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=JUQl02gf4z/Ywd0NjicTY20GtwwlprurWSqRSL2tJ4/uV3e9ALD7lretTbkeLYUY1Wz9CwFAIy1S5TqmSb+jwUss8J5lXxkX1V43UEQIglSLK1419eox757sLLFsaAanXGMEr+BL5aruoY1btQFMnBcUcrJYdk5JLNMq7gQHEE16FalYKjmtf1UMpGiP1puGpHe4DL6+U99Sc24vM37oicG0XnGMLl4ojNgPQTUUzopcCoVkcRXEhlW9xCAAxfAqRgnHkVl2Sbn3FvBq8lkHJsiTQrRnN0ze3wR3JC4I8PF0eENjGYGIsjd4ECDbl6m5TjdRQsWOpVZz+VouXaRDQQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=D43U8iDrPsW2qcgNCh0+qK+7RbDnE8YVfZ0T0bsSjec=;
 b=OTbZS8FePIBtTP1GnBc458nXDoMjSnRveREzZEmx6HkEzdwUVm8jdy7j2lB1ro0kUe3FDIRpgbiZXwtMWR6OFMcQdAAZYNhcvW9yUHIOvttSUiI4PDPMgS6P4E/oIEnI0Z2DSnlgEds6DsJKBqSz0AzxkCyTaNSDcajDcaSOOSdQUdKa1EisNXxGG8sjyc3MBCp7z2g1e6TnzUfbIRKouYvX2Oo55ofrD1ki1rDU20wVJi58L+wI7o2XptfHxOe3xxJGdQ7d97arJk9Vz21XbPdFTpPtiLAvSWcgnK3004KBxvpr4R5xshK8MXgE1VzoNHveo2SDqY2psgyw/X090w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=D43U8iDrPsW2qcgNCh0+qK+7RbDnE8YVfZ0T0bsSjec=;
 b=coRjQxZPlY7X30gCaFVqoBFhpDF0qiaLS//rk/yIgqO6lDfaHRwFFYeUZXW+d8Qgr2WjuAvMiLT5zVeTR7SsT3wx4w/Azc3kkNwcaHUw6DFYhqtHWc1+AFIeiEOHmhAWxvwdlklVEppRd2bELKmLan0MpehMMWU/aL22LOBRDtnLNbL6om9yp5jPaOT7J9vGLZDoKi8IdaHRNHV78T5979wIlp3ewDozjnZa/QYtYF+7UblB1pZZ7tkFWtc6TtkHJA5B+QLvBfcm2Xh0NJE9wIviZbA8Y0ZXsvtoiH8uRkyG/W8FAGAuXbMFQCvJ6yUpjkNUwX7tqUc1G6PcLQk5PQ==
Received: from TY2PR0101MB3693.apcprd01.prod.exchangelabs.com
 (2603:1096:404:800f::16) by SEZPR01MB4647.apcprd01.prod.exchangelabs.com
 (2603:1096:101:cf::11) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.11; Thu, 24 Nov
 2022 10:58:54 +0000
Received: from TY2PR0101MB3693.apcprd01.prod.exchangelabs.com
 ([fe80::43e:15e5:fd5b:c74a]) by
 TY2PR0101MB3693.apcprd01.prod.exchangelabs.com ([fe80::43e:15e5:fd5b:c74a%4])
 with mapi id 15.20.5834.018; Thu, 24 Nov 2022 10:58:54 +0000
Message-ID: <TY2PR0101MB3693EF7ADB9389A508C60A64DA0F9@HIDDEN>
Date: Thu, 24 Nov 2022 16:28:47 +0530
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.3.2
Content-Language: en-US
From: Ramesh Nedunchezian <rameshnedunchezian@HIDDEN>
Subject: 29.0.50; Commands created with `insert-kbd-macro` are NOT getting
 repeated.
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-TMN: [lBP2b9njYx/7tK6nchFYD0krzyKA+3MG]
X-ClientProxiedBy: MAXP287CA0016.INDP287.PROD.OUTLOOK.COM
 (2603:1096:a00:49::34) To TY2PR0101MB3693.apcprd01.prod.exchangelabs.com
 (2603:1096:404:800f::16)
X-Microsoft-Original-Message-ID: <aece6bbc-93f2-4b7e-c462-0d8e6c69b854@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: TY2PR0101MB3693:EE_|SEZPR01MB4647:EE_
X-MS-Office365-Filtering-Correlation-Id: 5dd9c8a4-a248-40e9-e33d-08dace0ae08b
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 0nGFEv64iVNT8cGW118O0RoYTQ5Ra12uvzjVUUCpBtTABRuRgfwrkkgG0DK9jcFvLkoG1dfbgWothhjLu+yhCHymrw9zCbvmBoAFEJ/wCH56YhhUREeJZ43GoOODZIh7Eps1Yu34+IseBg2Fh2DUd6OTNU+e9NG3ndZSe3aL2+nOhsRtXtPLyredency4LyNuxGezatIsJS4DuJlHmixuVOaFDf2NKQsHYNQamANAGLWaaEF/sWfulAEuIOPGkoVgM6AGXHsnDVMj1rYYhHtRttjX0sedJFuMi6/RDqK//b8drq30o0x5m8wTgRAg6n0O+Jl/+SCnu39ECdoCrm969PUKLMhLmy9tYX4NSf08nq/Xn0o901MZG/7Nx2m/ybCTfUyBx+q2kiK+oH0jqeS3CL1bJQJleY/C6+9X8ppDR6JUWupwOp8nUJVrN4++T1DSqpy/ODxoa0lAFdJPPDAKUI6l+b3hWwwR0m/rfuGEK/eLMPS+DX8aVUHCbFr2xZTUyYiAwdEjlKiK0D61NjVwuF6tzP1FJN/4sUFWkeMR3B9S55MeP6THGH9Jxy9t8eDT8BEfYSFLOB/bBPUQf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lrN3ZQa0Fq?=
 =?utf-8?B?VW9OZ1lWZDBXSHQxOEsrN3ljNVYyM21PbHYrenJNbndvcmNHb3VDd3VkNGVs?=
 =?utf-8?Q?G58wHL6u+1kKI4tewo=3D?=
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5dd9c8a4-a248-40e9-e33d-08dace0ae08b
X-MS-Exchange-CrossTenant-AuthSource: TY2PR0101MB3693.apcprd01.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2022 10:58:54.1261 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR01MB4647
Received-SPF: pass client-ip=40.92.107.90;
 envelope-from=rameshnedunchezian@HIDDEN;
 helo=APC01-TYZ-obe.outbound.protection.outlook.com
X-Spam_score_int: 2
X-Spam_score: 0.2
X-Spam_bar: /
X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_MUA_MOZILLA=2.309,
 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Commands created  with `insert-kbd-macro` are NOT getting repeated. Can this limitation be lifted?


For example, down below `my-cmd-a' and `my-cmd-b' are kbd macro commands bound to `<f12> a' and `<f12> b' respectively. 

With `repeat-mode' ON, I would expect that `a' and `b' keys to be repeatable . 

That is I am expecting that

<f12> a a

<f12> a b

will move the cursor and NOT modify the buffer.

Can `repeat-mode' be enhanced to make `a' and `b' keys repeatable.

Sometimes I do complex edits, and it is fairly common in my case to alternate between MANY kbd macro commands to quickly "fixup" things that I am editing.  F


WIW, the text files that I edit are txt files created with pdftotext, and the PDF files are usually books, or handouts which I want to read in epub format. 

So, I have multiple kbd macros in my init file that remove headers, and footers, removes indentation, changes bullets, remove hyphenation, linearize columnar text etc. It would be convenient if these kbd macro commands are repeatable.



(defalias 'my-cmd-a
  (kmacro "C-f C-f"))

(defalias 'my-cmd-b
  (kmacro "C-b C-b"))

(define-prefix-command 'my-kmacro-keymap)

(define-key my-kmacro-keymap (kbd "a") #'my-cmd-a)
(define-key my-kmacro-keymap (kbd "b") #'my-cmd-b)

(put 'my-cmd-a 'repeat-map 'my-kmacro-keymap)
(put 'my-cmd-b 'repeat-map 'my-kmacro-keymap)

(global-set-key (kbd "<f12>")
        my-kmacro-keymap)

(repeat-mode -1)
(repeat-mode +1)


In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version
 3.24.34, cairo version 1.16.0) of 2022-11-19 built on debian
Repository revision: a6ae13af42ede6618c326855ea4c95e0298fb75b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Debian GNU/Linux bookworm/sid





Acknowledgement sent to Ramesh Nedunchezian <rameshnedunchezian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#59539; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 24 Nov 2022 23:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.