From unknown Sat Aug 16 13:03:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#955 <955@debbugs.gnu.org> To: bug#955 <955@debbugs.gnu.org> Subject: Status: edmacro stores illegal macro Reply-To: bug#955 <955@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:03:18 +0000 retitle 955 edmacro stores illegal macro reassign 955 emacs submitter 955 matsuyama@ariel-networks.com severity 955 normal thanks From matsuyama@ariel-networks.com Wed Sep 10 01:20:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 08:20:23 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8A8KGJG000760 for ; Wed, 10 Sep 2008 01:20:18 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdKvw-00062U-Ad for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:20:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdKvu-00061i-9D for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:20:15 -0400 Received: from [199.232.76.173] (port=54654 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdKvu-00061f-6H for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:20:14 -0400 Received: from ckp0.ariel-networks.com ([124.39.57.14]:60509 helo=matsuyama.localdomain) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdKvt-0006Ze-T7 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:20:14 -0400 Received: from matsuyama.ariel-networks.com (localhost [127.0.0.1]) by matsuyama.localdomain (Postfix) with ESMTP id BB304E07EBB for ; Wed, 10 Sep 2008 17:25:08 +0900 (JST) Date: Wed, 10 Sep 2008 17:25:08 +0900 Message-ID: <87wshk2ysb.wl%matsuyama@ariel-networks.com> From: matsuyama@ariel-networks.com To: bug-gnu-emacs@gnu.org Subject: edmacro stores illegal macro User-Agent: Wanderlust/2.14.1 (Bad Medicine-pre) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-2022-JP-2?B?U2hpahskKEQrVxsoQg==?=) APEL/10.7 Emacs/23.0.60 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Hi, all. When I save the macro by typing `C-c C-c' in *Edit Macro*, edmacro doesn't store the macro correctly. Reproduce: M-: (setq last-kbd-macro [?\M-x ?e ?v ?a ?l ?- ?e ?x ?p ?r ?e ?s ?s ?i ?o ?n ?\C-m]) C-x C-k e RET C-c C-c M-x insert-kbd-macro => (setq last-kbd-macro []) ;; this macro is incorrect I've fixed this problem like that: --- edmacro.el.orig 2008-09-10 17:01:42.000000000 +0900 +++ edmacro.el 2008-09-10 17:04:05.000000000 +0900 @@ -697,7 +697,7 @@ (times 1) key) ;; Try to catch events of the form "". - (if (string-match "^<[^ >\t\n\f][^>\t\n\f]*>" word) + (if (string-match "^<[^ >\t\n\f][^>\t\n\f]*>?>" word) (setq word (match-string 0 word) pos (+ word-beg (match-end 0))) (setq word (substring string word-beg word-end) After applying this patch, `M-x insert-kbd-macro' works fine. M-x insert-kbd-macro => (setq last-kbd-macro [?\M-x ?e ?v ?a ?l ?- ?e ?x ?p ?r ?e ?s ?s ?i ?o ?n ?\C-m]) ;; now correct Thanks. MATSUYAMA From cyd@stupidchicken.com Wed Sep 10 14:52:40 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 955-done) by emacsbugs.donarmstrong.com; 10 Sep 2008 21:52:41 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8ALqb2v001251 for <955-done@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 14:52:39 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 1B75557E32F; Wed, 10 Sep 2008 17:55:42 -0400 (EDT) From: Chong Yidong To: matsuyama@ariel-networks.com Cc: 955-done@debbugs.gnu.org Subject: Re: edmacro stores illegal macro Date: Wed, 10 Sep 2008 17:55:42 -0400 Message-ID: <874p4nmzs1.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > When I save the macro by typing `C-c C-c' in *Edit Macro*, edmacro > doesn't store the macro correctly. Thanks for reporting this problem. I've checked in a similar fix to what you proposed. From unknown Sat Aug 16 13:03:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Oct 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator