From unknown Sat Aug 16 18:38:13 2025 X-Loop: don@donarmstrong.com Subject: bug#955: edmacro stores illegal macro Reply-To: matsuyama@ariel-networks.com, 955@debbugs.gnu.org Resent-From: matsuyama@ariel-networks.com Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 10 Sep 2008 08:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 955 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.1221034823898 (code B ref -1); Wed, 10 Sep 2008 08:30:03 +0000 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 User-Agent: Wanderlust/2.14.1 (Bad Medicine-pre) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=1B$(D+W=1B(B)?= 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 unknown Sat Aug 16 18:38:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: matsuyama@ariel-networks.com Subject: bug#955 closed by Chong Yidong (Re: edmacro stores illegal macro) Message-ID: References: <874p4nmzs1.fsf@cyd.mit.edu> <87wshk2ysb.wl%matsuyama@ariel-networks.com> X-Emacs-PR-Message: they-closed 955 X-Emacs-PR-Package: emacs Reply-To: 955@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1221084004-3440-1" This is a multi-part message in MIME format... ------------=_1221084004-3440-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #955: edmacro stores illegal macro It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 955: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D955 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1221084004-3440-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >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. ------------=_1221084004-3440-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >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 ------------=_1221084004-3440-1--