all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there a plan to record kbd macro as elisp code?
@ 2007-10-27  9:28 yzhh
  2007-10-27 15:48 ` Robert J. Chassell
                   ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: yzhh @ 2007-10-27  9:28 UTC (permalink / raw)
  To: emacs-devel

Hi,

Recording kbd macro as elisp code can be useful. The following are some 
benefits:
1. Editing elisp code is more clear than editing key sequences, and supports 
complex controlstructures. 
2. elisp code is more portable than key sequences. Sharing with others who 
have different key bindings is ok for elisp, but not for key sequences.
3. It can be used as a means ot learn emacs commands in elisp form.

I tried to build a modified emacs that stores every command sent to 
'execute-command' into a list, when 'defining-kbd-macro' is on. But the 
result is a list that still leaves out things like horizontal movements. 
And isearch is not recorded right (one search recorded as many isearch 
commands, without information of what's being searched).

So I know the modification required is not simple, far beyond a quick and 
dirty patch.

Out of curiosity I want to know whether there is a plan for this feature in 
the future.

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2007-10-31  7:46 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27  9:28 Is there a plan to record kbd macro as elisp code? yzhh
2007-10-27 15:48 ` Robert J. Chassell
2007-10-27 17:30   ` yzhh
2007-10-27 18:01     ` Drew Adams
2007-10-28 13:50       ` Richard Stallman
2007-10-27 20:04     ` Stefan Monnier
2007-10-27 21:22       ` Kim F. Storm
2007-10-28 13:50         ` Richard Stallman
2007-10-28 22:00           ` Kim F. Storm
2007-10-29  5:20             ` yzhh
2007-10-29  9:22             ` Richard Stallman
2007-10-29  9:22             ` Richard Stallman
2007-10-27 21:45       ` Juri Linkov
2007-10-28  1:14         ` Stefan Monnier
2007-10-28  1:34           ` Juri Linkov
2007-10-29  0:11             ` Richard Stallman
2007-10-28  6:49         ` yzhh
2007-10-28  7:13           ` yzhh
2007-10-28 10:54           ` Juri Linkov
2007-10-28 13:50         ` Richard Stallman
2007-10-28 15:09           ` Juri Linkov
2007-10-29  9:21             ` Richard Stallman
2007-10-28 16:13           ` yzhh
2007-10-28 16:48             ` Juri Linkov
2007-10-29  9:21             ` Richard Stallman
2007-10-30 14:14               ` Juri Linkov
2007-10-31  7:46                 ` Richard Stallman
2007-10-27 19:26   ` Jay Belanger
2007-10-27 16:20 ` Drew Adams
2007-10-27 17:13   ` yzhh
2007-10-27 17:40     ` Drew Adams
2007-10-27 18:05       ` yzhh
2007-10-27 19:22       ` Robert J. Chassell
2007-10-27 20:11         ` Drew Adams
2007-10-28 13:50   ` Richard Stallman
2007-10-28 16:45     ` Juri Linkov
2007-10-29  6:41 ` Klaus Zeitler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.