[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a plan to record kbd macro as elisp code?
From: |
yzhh |
Subject: |
Re: Is there a plan to record kbd macro as elisp code? |
Date: |
Sat, 27 Oct 2007 17:13:18 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Drew Adams <drew.adams <at> oracle.com> writes:
> IIRC, there used to be such a feature, bound to `C-x [' and `C-x ]' I think.
> It generated Elisp for the defined macro. Worked pretty well - gave you at
> least a skeleton you could complete to make a proper command definition.
>
> Unless it was in Epoch or Gosling Emacs. It's been a while...
>
> I think the command name was `gen-' something, but I can't find anything
> about this in Google - perhaps I'm not a good googler.
>
> The Emacs Lisp List has this entry, but the link appears to be dead:
> macro-generate.el --- [Turn a keyboard macro into lisp code.] Contact:
> [unknown]. Perhaps that was what I was thinking of. This is the (dead?) URL:
> http://www.dtek.chalmers.se/~d3rydma/Hack/emacs/Archive/macro-generate.el.
>
> And this page (http://www.bookshelf.jp/soft/meadow_46.html#SEC669) mentions
> in connection with macro-generate.el, commands `gen-start-generating',
> `gen-stop-generating', and `gen-expand-macro'. I think this was what I used
> to use. Perhaps you can find it somewhere else on the Web - I couldn't.
>
I'm sorry I didn't mention the path I've gone through. Actually I've found
a version of generate.el, which is made in 1989. It includes those functions
with similar names you cited (without 'gen-' prefix). And I runs without an
error in emacs22. But it leaves out too much commands in the generated code.
I looked into generated.el's implementation, and found it actually reads
command-history to get the code. And command-history itself is leaving out
a lot commands.
That's why I made those modifications, trying to get a complete command
history. And then the story you've read.
Please also read my reply to Robert.
- Re: Is there a plan to record kbd macro as elisp code?, (continued)
- Re: Is there a plan to record kbd macro as elisp code?, yzhh, 2007/10/28
- Re: Is there a plan to record kbd macro as elisp code?, Juri Linkov, 2007/10/28
- Re: Is there a plan to record kbd macro as elisp code?, Richard Stallman, 2007/10/29
- Re: Is there a plan to record kbd macro as elisp code?, Juri Linkov, 2007/10/30
- Re: Is there a plan to record kbd macro as elisp code?, Richard Stallman, 2007/10/31
Re: Is there a plan to record kbd macro as elisp code?, Jay Belanger, 2007/10/27
RE: Is there a plan to record kbd macro as elisp code?, Drew Adams, 2007/10/27
- Re: Is there a plan to record kbd macro as elisp code?,
yzhh <=
Re: Is there a plan to record kbd macro as elisp code?, Richard Stallman, 2007/10/28
Re: Is there a plan to record kbd macro as elisp code?, Klaus Zeitler, 2007/10/29