From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: matsuyama@ariel-networks.com Newsgroups: gmane.emacs.bugs Subject: bug#955: edmacro stores illegal macro Date: Wed, 10 Sep 2008 17:25:08 +0900 Message-ID: <87wshk2ysb.wl%matsuyama@ariel-networks.com> Reply-To: matsuyama@ariel-networks.com, 955@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1221051583 1482 80.91.229.12 (10 Sep 2008 12:59:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 12:59:43 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 15:00:38 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdPJF-0006Xm-Pq for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 15:00:38 +0200 Original-Received: from localhost ([127.0.0.1]:35379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdPIF-000480-O0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 08:59:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdLMP-0007VK-KY for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdLMN-0007V8-LS for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:47:36 -0400 Original-Received: from [199.232.76.173] (port=38866 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdLMN-0007V5-Gr for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:47:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37157) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdLMM-0003pg-Id for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 04:47:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8A8lWh9010031; Wed, 10 Sep 2008 01:47:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8A8U3wp003540; Wed, 10 Sep 2008 01:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: matsuyama@ariel-networks.com Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.1221034823898 (code B ref -1); Wed, 10 Sep 2008 08:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 08:20:23 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 10 Sep 2008 04:47:36 -0400 X-Mailman-Approved-At: Wed, 10 Sep 2008 08:59:25 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20432 Archived-At: 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