From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: `special' keys in keyboard macros Date: Thu, 16 Oct 2003 12:36:35 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16257.16532.727889.658851@tfkp07.physik.uni-erlangen.de> <16270.28790.644900.539286@tfkp07.physik.uni-erlangen.de> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066308322 18590 80.91.224.253 (16 Oct 2003 12:45:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 12:45:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 16 14:45:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA7VG-0005IL-00 for ; Thu, 16 Oct 2003 14:45:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA7VF-0005x0-00 for ; Thu, 16 Oct 2003 14:45:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA7PA-0006K3-Lk for emacs-devel@quimby.gnus.org; Thu, 16 Oct 2003 08:39:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA7OR-0006AG-Nx for emacs-devel@gnu.org; Thu, 16 Oct 2003 08:38:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA7Nu-00062m-0b for emacs-devel@gnu.org; Thu, 16 Oct 2003 08:38:14 -0400 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA7Nh-0005tY-PH for emacs-devel@gnu.org; Thu, 16 Oct 2003 08:37:41 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Thu, 16 Oct 2003 12:36:35 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: <16270.28790.644900.539286@tfkp07.physik.uni-erlangen.de> (message from Roland Winkler on Thu, 16 Oct 2003 12:18:30 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17146 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17146 Roland Winkler wrote I think it would be neat to have some better support for converting "dirty", quickly hacked keyboard macros into "clean" elisp commands. A decade or more ago, David Gillespie included a function that converted key strokes to Emacs Lisp in his Emacs Calc mode. Instead of running `kmacro-start-macro/ kmacro-start-macro' and end up with a keyboard macro, you would run this function the same way (possibly bound to the same keys) and end up with an Emacs Lisp defun. Unfortunately, I cannot find the feature any more. It is not in any recent version of Calc, nor any other place I have looked. Nor can I remember what it is called, except that I think it had `edit' in its name. Someone with more access to old Emacs Lisp libraries might find it. Or maybe it is hidden in the current Emacs Calc code and I just have not seen it. As with the RMIME libraries I mentioned earlier, this code is not likely to come with proper papers (although it was, if I remember rightly, part of Calc mode -- so maybe it does have papers). In any case, the defuns produced were not the best; and would need enhancement to emulate the current `kmacro-start-macro/ kmacro-start-macro' tools. But you should be able to look at the code and run the function as it is, and see what it does -- it could be a help. -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com