unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Calling macro by name while defining another macro
@ 2018-03-21 22:35 John Shahid
  2018-03-22 13:53 ` Stefan Monnier
  2018-03-22 15:00 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: John Shahid @ 2018-03-21 22:35 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list


Hi all,

I cannot seem to figure out how to call a macro by name from another
macro. Simply doing the following causes the macro to be called twice as
part of the second macro.

1. define macro using `C-x ('
2. finish the macro `C-x )'
3. name the macro `some-macro' using `name-last-kbd-macro'
4. define another macro using `C-x ('
5. call `some-macro' using `M-x some-macro' (some-macro called once)
6. finish macro editing using `C-x )'
7. call the macro again using `C-x e' (effects of `some-macro' are
applied twice)

From looking the new macro definition. It looks like the call to
`some-macro' as well as its keys are being recorded as part of the newly
defined macro. I cannot figure out how to temporarily stop that
recording from happening. Should I use something instead of `M-x' to
call `some-macro' ?

Thanks,

-js



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

end of thread, other threads:[~2018-03-22 17:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-21 22:35 Calling macro by name while defining another macro John Shahid
2018-03-22 13:53 ` Stefan Monnier
2018-03-22 15:12   ` Robert Pluim
2018-03-22 15:47     ` Stefan Monnier
2018-03-22 15:56       ` Eli Zaretskii
2018-03-22 15:56       ` Robert Pluim
2018-03-22 15:00 ` Eli Zaretskii
2018-03-22 15:52   ` John Shahid
2018-03-22 15:59     ` Stefan Monnier
2018-03-22 17:47       ` John Shahid

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).