unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs-lisp function for block-quoting (mail-style)?
@ 2003-02-10 22:05 Baard Ove Kopperud
  2003-02-10 22:15 ` Ethan Brown
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Baard Ove Kopperud @ 2003-02-10 22:05 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs-lisp function for block-quoting (mail-style)?
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Ethan Brown @ 2003-02-10 22:15 UTC (permalink / raw)


>>>>> "Baard" == Baard Ove Kopperud <baard.kopperud@bigfoot.com> writes:

    Baard> I was wondering if there is an emacs-lisp function
    Baard> for block-quoting a region and/or paragraph(s) of
    Baard> text in "mail-style" -- i.e. like this:

    Baard> This line is not quoted...
    Baard> neither is this one...
    >> but this one is...
    >> and so is this one...
    Baard> but not this.

    Baard> +++

    Baard> Idealy, it should re-break the lines if necessary
    Baard> to fit the specified coulmn-width (at least when
    Baard> in auto-fill-mode).

    Baard> By default, text should be quoted with "> ", but
    Baard> it ought to be possible to specify another string
    Baard> to be used to quote (e.g. "--> ").

    Baard> It ought to be possible to specify a file-name and
    Baard> have the file's contens pasted into the current
    Baard> buffer quoted.  This could perhaps be a seperate
    Baard> fuction that just used the actual quoting-function.

    Baard> +++

    Baard> If anyone could tell me if there already is an 
    Baard> emacs-function that do (some of) this -- either
    Baard> in the standard distribution or availble for
    Baard> download -- it would be greately appriciated.

    Baard> If not, would anyone here be able to write such
    Baard> a function... or perhaps give a complete e-lisp
    Baard> novice (like myself) some hints about how to do is?

    Baard> If you want to write to me, please use *this*
    Baard> address:  bokoppe [at] frisurf [dot] no

    Baard> TIA,
    Baard> -Koppe

You may want to check out supercite.

--Ethan Brown
--In a band?  Use http://www.WheresTheGig.com for free.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs-lisp function for block-quoting (mail-style)?
  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
  2003-02-11 15:04 ` D. Goel
  2003-02-11 19:25 ` Baard Ove Kopperud
  3 siblings, 0 replies; 6+ messages in thread
From: Jesper Harder @ 2003-02-10 22:46 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs-lisp function for block-quoting (mail-style)?
  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
@ 2003-02-11 15:04 ` D. Goel
  2003-02-11 19:25 ` Baard Ove Kopperud
  3 siblings, 0 replies; 6+ messages in thread
From: D. Goel @ 2003-02-11 15:04 UTC (permalink / raw)


> 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:

Hm, didn't read all of it, but good old M-x comment-region does work
:)

(there are many other awesome ways, as in the other follow-ups)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs-lisp function for block-quoting (mail-style)?
  2003-02-10 22:05 Emacs-lisp function for block-quoting (mail-style)? Baard Ove Kopperud
                   ` (2 preceding siblings ...)
  2003-02-11 15:04 ` D. Goel
@ 2003-02-11 19:25 ` Baard Ove Kopperud
  2003-02-11 19:57   ` D. Goel
  3 siblings, 1 reply; 6+ messages in thread
From: Baard Ove Kopperud @ 2003-02-11 19:25 UTC (permalink / raw)


baard.kopperud@bigfoot.com (Baard Ove Kopperud) wrote in message news:<ae685d1b.0302101405.1cc4adb4@posting.google.com>...
> 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:

Thank for all your answers.  Though
I haven't tried any of them yet, I'm
confident that one -- and probably
several -- of them will acomplish
what I need.

I just *knew* I could count on Emacs...
or to say it as friend of a friend does:

> Emacs is my operatingsystem...
> I only use Linux to run the
> device-drivers.

I guess I must go through the Emacs-
documentation, and really learn what
it can do.  Learning e-lisp would
probably also be a good idea.

Thanks again,
-Koppe

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs-lisp function for block-quoting (mail-style)?
  2003-02-11 19:25 ` Baard Ove Kopperud
@ 2003-02-11 19:57   ` D. Goel
  0 siblings, 0 replies; 6+ messages in thread
From: D. Goel @ 2003-02-11 19:57 UTC (permalink / raw)


> > Emacs is my operatingsystem...
> > I only use Linux to run the
> > device-drivers.

:)

Seen on #emacs (on irc.freenode.net)

<Erwin> I'm using Linux. A library that emacs uses to communicate with
Intel hardware.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-11 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2003-02-11 15:04 ` D. Goel
2003-02-11 19:25 ` Baard Ove Kopperud
2003-02-11 19:57   ` D. Goel

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).