From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Is there a plan to record kbd macro as elisp code? Date: Sat, 27 Oct 2007 16:04:57 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193515549 24250 80.91.229.12 (27 Oct 2007 20:05:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2007 20:05:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: yzhh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 27 22:05:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IlruA-00074S-ME for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 22:05:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ilru1-000730-Oa for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 16:05:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ilrtz-00072l-O7 for emacs-devel@gnu.org; Sat, 27 Oct 2007 16:04:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ilrtz-00071l-1z for emacs-devel@gnu.org; Sat, 27 Oct 2007 16:04:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ilrty-00071i-VO for emacs-devel@gnu.org; Sat, 27 Oct 2007 16:04:58 -0400 Original-Received: from tomts10-srv.bellnexxia.net ([209.226.175.54]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ilrty-000264-DG for emacs-devel@gnu.org; Sat, 27 Oct 2007 16:04:58 -0400 Original-Received: from ceviche.home ([74.12.208.145]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071027200457.FRWP1733.tomts10-srv.bellnexxia.net@ceviche.home> for ; Sat, 27 Oct 2007 16:04:57 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 56F14B4AB3; Sat, 27 Oct 2007 16:04:56 -0400 (EDT) In-Reply-To: (yzhh's message of "Sat\, 27 Oct 2007 17\:30\:02 +0000 \(UTC\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81877 Archived-At: > Thank you for your appreciation. But my modification is in the C code of > emacs, because 'execute-command' and 'call-interactively' are in C code. > And I don't think my dirty code would be a valid patch for the emacs > developers. I think what was expected was to first record a keyboard macro and later to turn that into elisp code. Another approach is to use a pre-command-hook to record the value of `this-command' for each command run. Stefan