From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: quoting a block of text with ">" Date: Thu, 30 Sep 2010 10:33:30 +0200 Message-ID: <83ocbfpr51.fsf@gnu.org> References: <77ccee74e9578ebd4936450a706a61fa.squirrel@webmail.tripperjones.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1285835653 20760 80.91.229.12 (30 Sep 2010 08:34:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 08:34:13 +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 Sep 30 10:34:10 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 1P1Eac-0001tg-AP for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 10:34:06 +0200 Original-Received: from localhost ([127.0.0.1]:52975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1Eab-0006Nn-Os for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 04:34:05 -0400 Original-Received: from [140.186.70.92] (port=36116 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1Ea3-0006Ls-OK for help-gnu-emacs@gnu.org; Thu, 30 Sep 2010 04:33:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1Ea2-0000wp-I3 for help-gnu-emacs@gnu.org; Thu, 30 Sep 2010 04:33:31 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65246) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1Ea2-0000wX-AD for help-gnu-emacs@gnu.org; Thu, 30 Sep 2010 04:33:30 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L9J00600WYN2200@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 30 Sep 2010 10:33:28 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.127.160]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9J005GYX3RUV50@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 30 Sep 2010 10:33:28 +0200 (IST) In-reply-to: <77ccee74e9578ebd4936450a706a61fa.squirrel@webmail.tripperjones.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:75040 Archived-At: > Date: Wed, 29 Sep 2010 11:59:19 -0700 > From: "Stever" > > I can't seem to find this function in my version of emacs, but I assume > there is one. is there any function where I can highlight a block of text > and put a ">" in front of it. It's part of mail-indent-citation (in sendmail.el): (save-excursion (let ((end (set-marker (make-marker) (region-end)))) (goto-char (region-beginning)) (while (< (point) end) (insert mail-yank-prefix) (forward-line 1)))) mail-yank-prefix is "> " in this case. This assumes you have the block of text marked as region.