help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot call-last-kbd-macro on named macro


From: james . kingston
Subject: cannot call-last-kbd-macro on named macro
Date: 9 May 2006 12:30:16 -0700
User-agent: G2/0.2

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]