From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Emacs-lisp function for block-quoting (mail-style)? Date: Mon, 10 Feb 2003 23:46:54 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044917322 2672 80.91.224.249 (10 Feb 2003 22:48:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 22:48:42 +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 18iMj7-0000ga-00 for ; Mon, 10 Feb 2003 23:48:38 +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 18iMkv-0005Qx-08 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Feb 2003 17:50:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; 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:6547 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6547 baard.kopperud@bigfoot.com (Baard Ove Kopperud) writes: > I was wondering if there is an emacs-lisp function > for block-quoting a region and/or paragraph(s) of > text in "mail-style" > > Idealy, it should re-break the lines if necessary > to fit the specified coulmn-width One way to do it is by setting the fill prefix, `C-x .', see "The Fill Prefix" section in the Emacs manual. > 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. Look for 'boxquote.el' which has this and similar functions. It uses this style by default: ,----[ test.txt ] | Foo bar | `---- But the style can be customized.