From: Jay Belanger <belanger@truman.edu>
Cc: belanger@truman.edu, emacs-devel@gnu.org
Subject: Re: Editing keyboard macros
Date: Thu, 30 Sep 2004 16:37:25 -0500 [thread overview]
Message-ID: <87llerbfqi.fsf@vh213602.truman.edu> (raw)
In-Reply-To: <m3pt43biv1.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Thu, 30 Sep 2004 22:29:54 +0200")
>> It doesn't work on keyboard macros that Calc saves, but that's a
>> problem with Calc that needs to be fixed.
>
> What's special about them ?
> Can you show me an example ?
Mostly, I think, it uses `calc-execute-kbd-macro' instead of
`kmacro-exec-ring-item'. There are other differences, the two macros
at the end of this message both enter "45 RET S".
Calc keyboard macros are created in the usual way, but Calc saves it's
macros differently because using a kmacro saved macro in Calc will put
each part of it on the Calc trail and in the undo stack, using a Calc
saved keyboard macro will only put one item in the trail and stack.
(Calc does other things different, too. When it attaches a macro to a
key, it makes it local to Calc.)
I'm thinking it might make sense to modify macedit.el, which came with
older versions of Calc, to create a special Calc keyboard macro
editing function. macedit.el wasn't made part of Emacs when Calc was,
but it was written by Dave Gillespie. Can anyone say if the copyright
papers he signed would also cover macedit.el?
Jay
(defun calc-User-g (&optional arg)
"Keyboard macro."
(interactive "p")
(kmacro-exec-ring-item (quote ([52 53 return 83] 0 "%d")) arg))
(defun calc-User-h (arg)
(interactive "P")
(calc-execute-kbd-macro ["4 5 <return> S" [52 53 return 83]] arg "zh"))
next prev parent reply other threads:[~2004-09-30 21:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 19:05 Editing keyboard macros Jay Belanger
2004-09-29 23:33 ` Kim F. Storm
2004-09-30 13:29 ` Kim F. Storm
2004-09-30 19:39 ` Jay Belanger
2004-09-30 20:29 ` Kim F. Storm
2004-09-30 21:37 ` Jay Belanger [this message]
2004-09-30 22:08 ` Kim F. Storm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87llerbfqi.fsf@vh213602.truman.edu \
--to=belanger@truman.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).