unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Adam Funk <a24061@yahoo.com>
Subject: Re: Macro to fold References header in news or mail onto multiple lines?
Date: Wed, 25 Oct 2006 19:31:05 +0100	[thread overview]
Message-ID: <94n414-d33.ln1@news.ducksburg.com> (raw)
In-Reply-To: 87y7r437ri.fsf@gmx.at

On 2006-10-25, Markus Triska <triska@gmx.at> wrote:

> (defun fold-references () (interactive)
>   (save-excursion
>     (goto-char (point-min))
>     (search-forward "References: ") (while (looking-at "<.*?>")
>       (goto-char (match-end 0))
>       (insert "\n")
>       (delete-horizontal-space)
>       (insert "\t"))
>     (delete-char -2))) ; remove tab & newline

I honestly wasn't trying to get someone to *write* it for me --- but
that's brilliant, thanks.  And I can understand how it works.  Maybe
someday I'll be able to write elisp too.   ;-)

      reply	other threads:[~2006-10-25 18:31 UTC|newest]

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

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=94n414-d33.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).