From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Making callable function of a macro
Date: Thu, 25 Sep 2008 10:33:31 +0200 [thread overview]
Message-ID: <1222331846.338559@arno.fh-trier.de> (raw)
In-Reply-To: <slrngdmgre.30v.joostkremers@j.kremers4.news.arnhem.chello.nl>
Joost Kremers wrote:
> Decebal wrote:
> [...]
>> So I would like to change the macro to a
>> function.
>
> i think the following info section explains how this can be done:
>
> (info "(emacs) Save Keyboard Macro")
>
> it even claims you don't need to know any elisp to do it...
>
> HTH
>
Yes, name the macro ( C-x C-k n ) and insert it in some file
with insert-kbd-macro . After that it becomes a callable function/command.
-> (NAME)
This requires the emacs instance, in which this is later invoked, to have
the same commands bound to the same keys as the instance where the macro was created.
I am afraid writing a generic macro, which would transform a kbd-macro into a
bindings-agnostic function is no trivial task.
-ap
next prev parent reply other threads:[~2008-09-25 8:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 7:07 Making callable function of a macro Decebal
2008-09-25 7:39 ` Pascal J. Bourguignon
2008-09-25 8:40 ` Decebal
2008-09-25 8:48 ` Joost Kremers
2008-09-25 9:25 ` Decebal
2008-09-25 9:45 ` harven
2008-09-25 7:54 ` Joost Kremers
2008-09-25 8:33 ` Andreas Politz [this message]
2008-09-25 8:45 ` Decebal
2008-09-25 9:24 ` harven
2008-09-30 9:04 ` Decebal
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=1222331846.338559@arno.fh-trier.de \
--to=politza@fh-trier.de \
--cc=help-gnu-emacs@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.
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).