unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Emacs-lisp function for block-quoting (mail-style)?
Date: Mon, 10 Feb 2003 23:46:54 +0100	[thread overview]
Message-ID: <m37kc721pd.fsf@defun.localdomain> (raw)
In-Reply-To: ae685d1b.0302101405.1cc4adb4@posting.google.com

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.

  parent reply	other threads:[~2003-02-10 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10 22:05 Emacs-lisp function for block-quoting (mail-style)? Baard Ove Kopperud
2003-02-10 22:15 ` Ethan Brown
2003-02-10 22:46 ` Jesper Harder [this message]
2003-02-11 15:04 ` D. Goel
2003-02-11 19:25 ` Baard Ove Kopperud
2003-02-11 19:57   ` D. Goel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37kc721pd.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).