From: Tom Tromey <tromey@redhat.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Apply a saved macro to region
Date: Thu, 31 Jan 2008 09:06:00 -0700 [thread overview]
Message-ID: <m3hcgudlp3.fsf@fleche.redhat.com> (raw)
In-Reply-To: fb9f05100801310718j5aceb08bt92247cd220a769f8@mail.gmail.com
>>>>> "Ankur" == Ankur Jain <ankurj@gmail.com> writes:
Ankur> I saved a macro which appends a comma(,) at the end of a
Ankur> line. I want to apply this saved macro to a region now. I mean,
Ankur> I select a region in emacs and do "append_comma" macro command
Ankur> to apply this to the whole region.
What I would usually do is make a keyboard macro that operates on the
current line and then moves to the next line. That way if I run it
multiple times it will do the right thing.
Then to apply it to a region, I would 'C-x n n' (narrow-to-region),
move to the start, and run it enough times. You can do this using C-u
a lot. Finally, 'C-x n w' to widen to the whole buffer again.
Tom
next prev parent reply other threads:[~2008-01-31 16:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 15:18 Apply a saved macro to region Ankur Jain
2008-01-31 15:22 ` Michael Hoffman
2008-01-31 15:46 ` Ankur Jain
2008-01-31 15:50 ` Andreas Röhler
2008-01-31 16:06 ` Tom Tromey [this message]
[not found] ` <mailman.6814.1201797949.18990.help-gnu-emacs@gnu.org>
2008-01-31 20:03 ` Colin S. Miller
2008-02-01 1:10 ` Nikos Apostolakis
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=m3hcgudlp3.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--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).