From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Edward O'Connor" Newsgroups: gmane.emacs.devel Subject: Re: [CVS] f7, f8 bound.. Date: Wed, 28 Aug 2002 13:42:38 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: <87lm6xiruh.fsf@computer.localdomain> <5xu1liwmu6.fsf@kfs2.cua.dk> <200208261526.g7QFQX624783@rum.cs.yale.edu> <5xu1lgu1e4.fsf@kfs2.cua.dk> <200208271621.g7RGLNm30516@rum.cs.yale.edu> <5xhehfe3aj.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030560052 26694 127.0.0.1 (28 Aug 2002 18:40:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2002 18:40:52 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17k7kF-0006w6-00 for ; Wed, 28 Aug 2002 20:40:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17k8G9-0003T0-00 for ; Wed, 28 Aug 2002 21:13:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17k7lb-0001cw-00; Wed, 28 Aug 2002 14:42:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17k7k4-0001b8-00 for emacs-devel@gnu.org; Wed, 28 Aug 2002 14:40:36 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17k7k1-0001ak-00 for emacs-devel@gnu.org; Wed, 28 Aug 2002 14:40:35 -0400 Original-Received: from amalthea.teisoft.com ([12.109.66.146] helo=george.floobin.cx) by monty-python.gnu.org with esmtp (Exim 4.10) id 17k7k1-0001af-00 for emacs-devel@gnu.org; Wed, 28 Aug 2002 14:40:33 -0400 Original-Received: (from ted@localhost) by george.floobin.cx (8.11.3/8.11.3) id g7SIgcl11260; Wed, 28 Aug 2002 13:42:38 -0500 Original-To: emacs-devel@gnu.org X-Face: #()Nun50FWhQvC^2/~=QQ`5c#28BjpE|dM0G']o]qVVKi2jHFqRFo[kGYloI wU"N>Hhz0pS10c.yki^~3l{=.h@l\-*G\P"@C!JZ,XZLJqv`,{)XUpo8qYu::fXJ[` QdcFF}p%kQ#wD@mA.\CxU_#gVKOC.n/5LM/9paO\>A9<^fdNH(||@C0I'bB(f]WHYB *ZEgQzA/6/-4~vf?NUd6JN"ocE@Q(^)Ryity|#4n>p\c4Y2`n=hfn\w-oRF|@- In-Reply-To: (Miles Bader's message of "28 Aug 2002 17:54:40 +0900") Original-Lines: 30 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7074 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7074 > > Note that where the old (and still available) bindings use > > separate commands for ending and calling a keyboard macro, the > > new bindings merges the ending and calling onto the same key. > > So kmacro just needs two [function] keys rather than three. > > I think the merging of `end-kmacro-definition' and > `execute-kmacro' is clever and useful. I agree, but why not go one step further, and merge macro starting in as well? For quite a long time, I've had the following defun in my .emacs: (defun ted-macro-dwim (arg) "DWIM keyboard macro recording and executing." (interactive "P") (if defining-kbd-macro (end-kbd-macro arg) (if last-kbd-macro (call-last-kbd-macro arg) (start-kbd-macro arg)))) Try binding that to F9 or C-x e or whatever. The functionality is trivial, and the defun less than 10 lines. I wouldn't object in the slightest to this being included with Emacs. I find it nice to have a binding to clear out the value of `last-kbd-macro' too. -- Edward O'Connor ted@oconnor.cx