From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Editing keyboard macros Date: Thu, 30 Sep 2004 01:33:47 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <87r7ok521t.fsf@vh213602.truman.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096500961 19167 80.91.229.6 (29 Sep 2004 23:36:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2004 23:36:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 30 01:35:48 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CCnzA-0003W0-00 for ; Thu, 30 Sep 2004 01:35:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCo5W-0007K5-Uz for ged-emacs-devel@m.gmane.org; Wed, 29 Sep 2004 19:42:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCo3i-0006l3-56 for emacs-devel@gnu.org; Wed, 29 Sep 2004 19:40:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCo3g-0006ix-6I for emacs-devel@gnu.org; Wed, 29 Sep 2004 19:40:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCo3f-0006if-Ee for emacs-devel@gnu.org; Wed, 29 Sep 2004 19:40:27 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCnxC-0005Id-IR for emacs-devel@gnu.org; Wed, 29 Sep 2004 19:33:46 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 6416A5EE027; Thu, 30 Sep 2004 01:33:45 +0200 (CEST) Original-To: belanger@truman.edu In-Reply-To: <87r7ok521t.fsf@vh213602.truman.edu> (Jay Belanger's message of "Wed, 29 Sep 2004 14:05:02 -0500") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27680 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27680 Jay Belanger writes: > When a keyboard macro is edited, it is assumed that the macro is an > array. However, `kmacro-name-last-macro' and 'kmacro-bind-to-key' now > put the macro in a lambda expression, and so `edit-kbd-macro' gives an > error if you try to edit a named macro. Should the naming of macros > be reverted to storing them as arrays? There are good reasons for the change to lambda forms (to handle per-macro counter and counter format), so that is not an option. > (`edit-kbd-macro' could be partially rewritten, I suppose, but that > would be more work. I assume that the named keyboard macros are > stored as lambda expressions so they can be called from lisp (which > would make the docstrings out of date). But the ability to edit a > keyboard macro seems like too much to lose.) I will fix edit-kbd-macro to handle kmacro generated lambda forms. Thanks for reporting the problem. -- Kim F. Storm http://www.cua.dk