[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [CVS] f7, f8 bound..
From: |
Edward O'Connor |
Subject: |
Re: [CVS] f7, f8 bound.. |
Date: |
Wed, 28 Aug 2002 13:42:38 -0500 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) |
> > 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
address@hidden
- Re: [CVS] f7, f8 bound.., (continued)
- Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/08/28
- Re: [CVS] f7, f8 bound.., Kai Großjohann, 2002/08/29
- Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/08/30
- Re: [CVS] f7, f8 bound.., Kim F. Storm, 2002/08/30
- Re: [CVS] f7, f8 bound.., Miles Bader, 2002/08/30
- Re: [CVS] f7, f8 bound.., Alex Schroeder, 2002/08/31
- Re: [CVS] f7, f8 bound.., Kim F. Storm, 2002/08/29
- Re: [CVS] f7, f8 bound.., Francesco Potorti`, 2002/08/29
- Re: [CVS] f7, f8 bound..,
Edward O'Connor <=
- Re: [CVS] f7, f8 bound.., Miles Bader, 2002/08/28
- Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/08/28
- Re: [CVS] f7, f8 bound.., Miles Bader, 2002/08/28
- Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/08/30
- Re: [CVS] f7, f8 bound.., Stefan Monnier, 2002/08/30
- Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/08/30
- Re: [CVS] f7, f8 bound.., Miles Bader, 2002/08/30
- Re: [CVS] f7, f8 bound.., Alex Schroeder, 2002/08/31
- Re: [CVS] f7, f8 bound.., Francesco Potorti`, 2002/08/30
- Re: [CVS] f7, f8 bound.., Kim F. Storm, 2002/08/30