unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Adam Funk <a24061@yahoo.com>
Subject: Macro to fold References header in news or mail onto multiple lines?
Date: Wed, 25 Oct 2006 10:36:41 +0100	[thread overview]
Message-ID: <9qn314-18p.ln1@news.ducksburg.com> (raw)

I'm looking for an emacs macro to fold the References header in a news
or mail message that I'm editing onto mulitple lines.  I want a
command that will reformat the following line, for example,

References: <37029@invalid> <3203A@example.com> <BB6D1@invalid> <5DFF1@example.org>

into this sequence of lines

References: <37029@invalid>
	<3203A@example.com>
	<BB6D1@invalid>
	<5DFF1@example.org>

which still constitutes one header (I've used tabs at the beginning of
the subsequent lines in my example, but spaces are OK too).

(If the macro finds the References: line near the top of the current
buffer on its own, that would be nice too.)

I'm sure someone must have already done this (and I hope so, because
my elisp skills are *very* limited), but I haven't been able to find
anything relevant by googling (probably because "fold" in the Emacs
context is often used to mean hide part of a buffer from view).  I'd
appreciate a pointer to such a macro or just some more precise
terminology for googling for it.

Thanks,
Adam

             reply	other threads:[~2006-10-25  9:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-25  9:36 Adam Funk [this message]
2006-10-25 11:47 ` Macro to fold References header in news or mail onto multiple lines? Peter Dyballa
2006-10-25 12:22 ` Markus Triska
2006-10-25 18:31   ` Adam Funk

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=9qn314-18p.ln1@news.ducksburg.com \
    --to=a24061@yahoo.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).