From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: baard.kopperud@bigfoot.com (Baard Ove Kopperud) Newsgroups: gmane.emacs.help Subject: Emacs-lisp function for block-quoting (mail-style)? Date: 10 Feb 2003 14:05:26 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1044915074 24076 80.91.224.249 (10 Feb 2003 22:11:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 22:11:14 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iM8u-0006Fy-00 for ; Mon, 10 Feb 2003 23:11:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iM8D-0007ct-05 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Feb 2003 17:10:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 41 Original-NNTP-Posting-Host: 217.70.229.196 Original-X-Trace: posting.google.com 1044914727 8038 127.0.0.1 (10 Feb 2003 22:05:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 10 Feb 2003 22:05:27 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110040 comp.emacs:77538 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6545 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6545 I was wondering if there is an emacs-lisp function for block-quoting a region and/or paragraph(s) of text in "mail-style" -- i.e. like this: This line is not quoted... neither is this one... > but this one is... > and so is this one... but not this. +++ Idealy, it should re-break the lines if necessary to fit the specified coulmn-width (at least when in auto-fill-mode). By default, text should be quoted with "> ", but it ought to be possible to specify another string to be used to quote (e.g. "--> "). It ought to be possible to specify a file-name and have the file's contens pasted into the current buffer quoted. This could perhaps be a seperate fuction that just used the actual quoting-function. +++ If anyone could tell me if there already is an emacs-function that do (some of) this -- either in the standard distribution or availble for download -- it would be greately appriciated. If not, would anyone here be able to write such a function... or perhaps give a complete e-lisp novice (like myself) some hints about how to do is? If you want to write to me, please use *this* address: bokoppe [at] frisurf [dot] no TIA, -Koppe