From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: On converting from kbd macro to elisp code Date: Fri, 08 Sep 2006 07:56:00 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1157716770 14318 80.91.229.2 (8 Sep 2006 11:59:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 11:59:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 13:59:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLf16-0007eB-AL for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 13:59:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLf15-0006Da-UO for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 07:59:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLexm-0000MU-TW for emacs-devel@gnu.org; Fri, 08 Sep 2006 07:56:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLexl-0000LL-OO for emacs-devel@gnu.org; Fri, 08 Sep 2006 07:56:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLexl-0000Ky-D2 for emacs-devel@gnu.org; Fri, 08 Sep 2006 07:56:01 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLeyL-0007mN-Q9 for emacs-devel@gnu.org; Fri, 08 Sep 2006 07:56:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GLexk-0007Ly-JI; Fri, 08 Sep 2006 07:56:00 -0400 Original-To: "Herbert Euler" In-reply-to: (herberteuler@hotmail.com) 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:59553 Archived-At: 1. If keybindings are changed, the same keyboard macro may mean different operations. Shall it be correct to convert a keyboard macro to Lisp code that does exactly the same things as in the old keybindings, or to convert a keyboard according to new keybindings? It should convert based on the current key bindings. So if you typed C-f, it should call forward-char. 2. Even if keybindings are not changed, the same keyboard macro may mean different operations for different major modes and/or minor modes. Does each mode need a conversion? Again, it should operate based on the current bindings. The point is to produce nice-looking Lisp code that could be a good start for hand-editing.