help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prepend a character to the lines in a region


From: David Kastrup
Subject: Re: prepend a character to the lines in a region
Date: Sun, 19 Mar 2006 23:25:59 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"B. T. Raven" <ecinmn@peoplepc.com> writes:

> If I want to respond to an email where (for whatever reason) the sender's
> text hasn't been quoted, I copy paste it into emacs and do a search
> replace with this regular expression:
>
> C-M-% \(.+\) RET >\1  RET
>
> This works but the region is repainted before each replacement. Is there a
> built in command that can accomplish this? M-; is almost right but it
> might not be if I had a defined syntax and I actually wanted to use it for
> commenting out a region.

C-x r t

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]