From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Apply macro to region
Date: Thu, 21 Jul 2005 17:08:23 -0600 [thread overview]
Message-ID: <dbp9tc$72s$1@sea.gmane.org> (raw)
In-Reply-To: <3ka440Ft74qmU1@individual.net>
Marc Tfardy wrote:
> I have a set of named macros. With apply-macro-to-region-lines command
> I can apply last defined macro to each line of region. How can
> I apply a named macro to region, except I define a "wrapper macro"
> with C-x ( macro name C-x )? Any ideas?
Advise it to read a macro name (when preceded by C-u):
(defadvice apply-macro-to-region-lines (before read-named-macro activate)
"With a prefix arg, read a named macro to apply (instead of the last
macro)."
(interactive
(list (region-beginning)
(region-end)
(if current-prefix-arg
(read-command "Name of keyboard macro to apply: ")))))
BTW, frequent users of apply-macro-to-region-lines might like this:
(global-set-key "\C-xE" 'apply-macro-to-region-lines)
--
Kevin Rodgers
next prev parent reply other threads:[~2005-07-21 23:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-21 17:32 Apply macro to region Marc Tfardy
2005-07-21 23:08 ` Kevin Rodgers [this message]
[not found] ` <mailman.1234.1121988342.20277.help-gnu-emacs@gnu.org>
2005-07-22 10:06 ` Marc Tfardy
-- strict thread matches above, loose matches on Subject: below --
2005-07-21 22:26 Dave Humphries
[not found] <mailman.1231.1121985007.20277.help-gnu-emacs@gnu.org>
2005-07-22 10:11 ` Marc Tfardy
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dbp9tc$72s$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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 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.