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: recording-elisp.el - try recording commands as elisp code Date: Fri, 02 Nov 2007 13:39:35 +0800 Message-ID: References: <49248.83.178.59.207.1193958099.squirrel@webmail.jurta.org> 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 1193982021 16393 80.91.229.12 (2 Nov 2007 05:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 05:40:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 06:40:23 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 1InpGY-0007aS-8G for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2007 06:40:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InpGL-000124-Jw for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2007 01:40:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InpGH-0000zE-H8 for emacs-devel@gnu.org; Fri, 02 Nov 2007 01:40:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InpGG-0000xj-2z for emacs-devel@gnu.org; Fri, 02 Nov 2007 01:40:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InpGF-0000xZ-Lm for emacs-devel@gnu.org; Fri, 02 Nov 2007 01:40:03 -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 1InpGF-0007ra-6s for emacs-devel@gnu.org; Fri, 02 Nov 2007 01:40:03 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1InpG6-00030w-Kd for emacs-devel@gnu.org; Fri, 02 Nov 2007 05:39:54 +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 ; Fri, 02 Nov 2007 05:39:54 +0000 Original-Received: from yezonghui by 211.90.238.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Nov 2007 05:39:54 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 211.90.238.185 User-Agent: KNode/0.10.5 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:82339 Archived-At: Juri Linkov wrote: >Thanks. I owe you a thank you for give it a start. > I think I should install my C patch that adds a new variable > this-command-args. This will allow you to continue freely implementing > this feature. Do you mean you'll make the C patch available on CVS? I don't catch the exact meaning of the word 'install' here. > I suggest you to give a shorter name to this package (e.g. record-lisp.el) > and to use the same prefix for all function and variable names. Yes I thought about this. But "record-lisp-" looks too long as a prefix while "record-" is too general a word that can be mistaken for other things. I've not come up with a good one yet. Any suggestion are welcome here regarding the names. > It's fine that you implement separate commands to record Lisp commands > with their arguments since actually this feature is not dependent > on keyboard macros. But I think `C-x (' and `C-x )' still should record > Lisp commands too, because these keybindings are convenient to start and > end recording of command sequences, even though they record different > things: one feature records a keyboard macro, and another - Lisp code. I've not written code to bind keys to these recording commands. I'd leave decision about the default binding to the emacs developers. Currently using seperate keys is easier. Doing both together would need some tricky code. Recording a replayed kbd macro is a partial solution for the moment. -- regards, yzhh