[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apply a saved macro to region
From: |
Andreas Röhler |
Subject: |
Re: Apply a saved macro to region |
Date: |
Thu, 31 Jan 2008 16:50:36 +0100 |
User-agent: |
KMail/1.9.5 |
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