all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cannot call-last-kbd-macro on named macro
@ 2006-05-09 19:30 james.kingston
  2006-05-09 19:33 ` james.kingston
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: james.kingston @ 2006-05-09 19:30 UTC (permalink / raw)


GNU Emacs 21.4.1....

I have saved some keyboard macros using insert-kbd-macro into my
.emacs, like the following:

(fset 'toggle-next-perlsub
   [?\C-\M-s ?\\ ?b ?s ?u ?b ?\\ ?b ?\C-m ?\C-\M-s ?{ ?\C-m ?\M-x ?f ?o
?l ?d ?- ?d ?w ?i ?m ?- ?t ?o ?g ?g ?l ?e return])

I can M-x fold-next-perlsub if I want to run the macro, but I cannot
then run call-last-kbd-macro (which I have bound to an F-key)... it's
as if the macro is loaded as a function rather than a kbd macro.

As a workaround I could change the binding of the F-key to call my
named macro, but then I wouldn't be able to use the macros with
apply-macro-to-region-lines... So is there some way to push a named
macro onto some sort of macro stack so I can use the macro commands
with my macro?

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

end of thread, other threads:[~2006-05-19 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-09 19:30 cannot call-last-kbd-macro on named macro james.kingston
2006-05-09 19:33 ` james.kingston
2006-05-09 21:17 ` Kevin Rodgers
     [not found] ` <mailman.1620.1147209514.9609.help-gnu-emacs@gnu.org>
2006-05-10 19:12   ` james
2006-05-15 12:08     ` Brendan Halpin
2006-05-15 17:50       ` Kevin Rodgers
2006-05-16 15:20       ` Mathias Dahl
2006-05-16 15:41         ` Brendan Halpin
2006-05-19 14:06           ` Mathias Dahl

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.