From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sean McAfee Newsgroups: gmane.emacs.help Subject: Re: quoting a block of text with ">" Date: Thu, 30 Sep 2010 11:32:29 -0700 Message-ID: References: <83ocbfpr51.fsf@gnu.org> <77ccee74e9578ebd4936450a706a61fa.squirrel@webmail.tripperjones.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291884221 1048 80.91.229.12 (9 Dec 2010 08:43:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 08:43:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 09:43:35 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQc6A-0001Uh-PM for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 09:43:34 +0100 Original-Received: from localhost ([127.0.0.1]:40509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQc69-0002TI-I2 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 03:43:33 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 30 Sep 2010 13:32:30 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:3m6AOaJw6tZmzVwLkPFz2BpQy5I= Original-Lines: 19 Original-X-Trace: sv3-nXCSp43aED50FDvnW+PtpIhk5O3EgkiX95Xk/UjgGA7nTNab6kNj5eddo/aYmAX48RnIU3tQ6RWYndE!vHTdlmnzt3SmRsrB2qep92pLUyopZOwYV5sVaijWjmScX+DC32zESvt7Wkyjt5T5i92osRoQI5Ap!4Bj4nMTyxrP+uO3IvKPYQ9yq Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1924 Original-Xref: usenet.stanford.edu gnu.emacs.help:181575 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:76883 Archived-At: Tom Roche writes: > Stever Wed, 29 Sep 2010 11:59:19 -0700 >>>> is there any function where I can highlight a block of text and >>>> put a ">" in front of it. > > Or, for that matter, easily > > * put an arbitrary number of ">" in front, i.e. quote to a level. > * remove an arbitrary number of ">" in front, i.e. unquote > > Fortunately, it seems that, in emacs as in perl, TMTOWTDI: Another way I'm surprised no one has mentioned is just to select the text using the region and then replace the regexp "^" with ">". I used to do that kind of thing all the time when I mainly used vim. Emacs's comment-region has made it much less necessary.