[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Calling keyboard macros from Lisp code
- To: Mike McMahon <MMcM at SCRC-TENEX>
- Subject: Calling keyboard macros from Lisp code
- From: Henry Lieberman <Henry at MIT-AI>
- Date: Mon ,28 Jun 82 23:19:00 EDT
- Cc: Bug-Zwei at MIT-AI
How is it possible to call from Lisp a keyboard macro defined in Zwei?
And have it do what? Type editor commands to the lisp listener?
What I had in mind was calling it from Lisp code running inside the editor.
ZWEI:KEY-EXECUTE would be fine except that if you call it on a key containing
a keyboard macro it complains "This stream doesn't permit macros".
The reason I want it is that I often need keyboard macros which iterate over a
list or have conditionals, etc. (What I really need is Tinker in Zwei!)
If I had a way to call a keyboard macro from Lisp I could write a little piece
of Lisp code to accomplish this. It's the analog of typing Teco code in a
minibuffer in Emacs.