From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yzhh Newsgroups: gmane.emacs.devel Subject: Re: Is there a plan to record kbd macro as elisp code? Date: Sat, 27 Oct 2007 17:30:02 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193506308 30245 80.91.229.12 (27 Oct 2007 17:31:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2007 17:31:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 27 19:31:49 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 1IlpVj-0007DZ-Bw for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 19:31:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlpVa-00082c-IQ for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 13:31:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlpUO-0007Fg-4y for emacs-devel@gnu.org; Sat, 27 Oct 2007 13:30:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlpUL-0007Ct-Dq for emacs-devel@gnu.org; Sat, 27 Oct 2007 13:30:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlpUL-0007Ch-8A for emacs-devel@gnu.org; Sat, 27 Oct 2007 13:30:21 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IlpUK-0005aR-SU for emacs-devel@gnu.org; Sat, 27 Oct 2007 13:30:21 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IlpUA-0005xc-ID for emacs-devel@gnu.org; Sat, 27 Oct 2007 17:30:10 +0000 Original-Received: from 211.90.238.185 ([211.90.238.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Oct 2007 17:30:10 +0000 Original-Received: from yezonghui by 211.90.238.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Oct 2007 17:30:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 211.90.238.185 (Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8.1.6) Gecko/20070723 Iceweasel/2.0.0.6 (Debian-2.0.0.6-0etch1+lenny1)) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81862 Archived-At: Robert J. Chassell rattlesnake.com> writes: > It certainly can be. More than a dozen years ago an early > distribution of Calc mode did this. Unfortunately, as far as I > remember, its functionality did no more than you have done. Worse, it > vanished from my distribution a decade or so ago and by the time I > looked again, perhaps five years ago, it was gone. I didn't find things relating to Calc mode when I searched the web on this topic. Hope you remember it right and get it back. Please let me known when you do. > Even the little bit you have done could be helpful. > > Please write up what you have as an Emacs Lisp library that can be > loaded by `emacs -q', with a name such as > yzhh-define-elisp-interactively.el, and submit it. > 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. As far as I can see, recording everything including isearch, query-replace and alike in a general way would need modification in C code. And that modification very probably require quite some re-design of emacs internal control structure (the command loop and kbd macro implementation). All these are out of my reach for the moment. > Thank you! Thank you too. And please read my reply to Drew.