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: B. T. Raven
Subject: Re: prepend a character to the lines in a region
Date: Sun, 19 Mar 2006 23:14:52 GMT

"David Kastrup" <dak@gnu.org> wrote in message
85d5gi3wco.fsf@lola.goethe.zz">news:85d5gi3wco.fsf@lola.goethe.zz...
> "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

Thanks David. Bob's my uncle. I knew about some of  rectangle functions
but I didn't think of them in that way.

Ed



reply via email to

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