From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: prepend a character to the lines in a region Date: Sun, 19 Mar 2006 23:14:52 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <6RkTf.14889$S25.11036@newsread1.news.atl.earthlink.net> <85d5gi3wco.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142811636 7828 80.91.229.2 (19 Mar 2006 23:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2006 23:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 00:40:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FL7Vd-0002oY-Qj for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Mar 2006 00:40:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FL7Vd-0003mF-4s for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 18:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!207.69.154.102.MISMATCH!elnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.32.113 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.news.atl.earthlink.net 1142810092 4.159.32.113 (Sun, 19 Mar 2006 15:14:52 PST) Original-NNTP-Posting-Date: Sun, 19 Mar 2006 15:14:52 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:138278 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33891 Archived-At: "David Kastrup" wrote in message news:85d5gi3wco.fsf@lola.goethe.zz... > "B. T. Raven" 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