From: "Andreas Röhler" <andreas.roehler@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Apply a saved macro to region
Date: Thu, 31 Jan 2008 16:50:36 +0100 [thread overview]
Message-ID: <200801311650.37054.andreas.roehler@online.de> (raw)
In-Reply-To: <fb9f05100801310718j5aceb08bt92247cd220a769f8@mail.gmail.com>
Am Donnerstag, 31. Januar 2008 16:18 schrieb Ankur Jain:
> Hi
>
> I saved a macro which appends a comma(,) at the end of a line. I want to
> apply this saved macro to a region now. I mean, I select a region in emacs
> and do "append_comma" macro command to apply this to the whole region.
>
> If that's possible, kindly reply.
What about a function?
(defun insert-comma-at-region-end (beg end)
" "
(interactive "*r")
(goto-char (region-end))
(insert ","))
Andreas Röhler
next prev parent reply other threads:[~2008-01-31 15:50 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 [this message]
2008-01-31 16:06 ` Tom Tromey
[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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200801311650.37054.andreas.roehler@online.de \
--to=andreas.roehler@online.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.
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.