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: Sun, 28 Oct 2007 16:13:26 +0000 (UTC) Message-ID: References: <87y7doxmcw.fsf@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 1193588135 12800 80.91.229.12 (28 Oct 2007 16:15:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 16:15:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 17:15:37 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 1ImAnY-0001AR-Fr for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 17:15:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImAnP-000686-2V for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 12:15:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImAlw-0005mb-BK for emacs-devel@gnu.org; Sun, 28 Oct 2007 12:13:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImAlr-0005kv-Mh for emacs-devel@gnu.org; Sun, 28 Oct 2007 12:13:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImAlr-0005ko-Gw for emacs-devel@gnu.org; Sun, 28 Oct 2007 12:13:51 -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 1ImAlr-0002wL-1w for emacs-devel@gnu.org; Sun, 28 Oct 2007 12:13:51 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ImAlg-00066u-RO for emacs-devel@gnu.org; Sun, 28 Oct 2007 16:13:41 +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 ; Sun, 28 Oct 2007 16:13:40 +0000 Original-Received: from yezonghui by 211.90.238.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Oct 2007 16:13:40 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 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:81971 Archived-At: Richard Stallman gnu.org> writes: > We expect this conversion to use the keymaps that Emacs has when you > do the conversion. That is a feature, not a bug. I can give an example that reveals another complication of the "translate using keymaps" approach. The following: M-x ;; execute-extended-command repla ;; self-insert-command * 5 2*TAB ;; lisp-indent-line str ;; self-insert-command * 3 TAB ;; lisp-indent-line RET ;; newline is ;; self-insert-command * 2 RET ;; newline IS ;; self-insert-command * 2 RET ;; newline is a kbd macro I recorded for M-x replace-string is -> IS. The complication is with the TAB completion - it would require total knowledge about TAB completion to reconstruct the command name - what edit-kbd-macro doesn't do.