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: prepend a character to the lines in a region Date: Sun, 19 Mar 2006 22:22:58 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: <6RkTf.14889$S25.11036@newsread1.news.atl.earthlink.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142874429 31228 80.91.229.2 (20 Mar 2006 17:07:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2006 17:07:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 18:07:09 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 1FLNqI-0001cB-Ib for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Mar 2006 18:06:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLNqG-0004Pi-1X for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Mar 2006 12:06:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.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: 14 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 1142806978 4.159.32.113 (Sun, 19 Mar 2006 14:22:58 PST) Original-NNTP-Posting-Date: Sun, 19 Mar 2006 14:22:58 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:138276 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:33899 Archived-At: 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. Ed.