help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macro to fold References header in news or mail onto multiple lines?


From: Markus Triska
Subject: Re: Macro to fold References header in news or mail onto multiple lines?
Date: Wed, 25 Oct 2006 14:22:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Adam Funk <a24061@yahoo.com> writes: > > References: <37029@invalid> <3203A@example.com> <BB6D1@invalid>... > > into this sequence of lines > > References: <37029@invalid> > <3203A@example.com> > <BB6D1@invalid> > <5DFF1@example.org>

(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


Best wishes! -- Markus Triska


reply via email to

[Prev in Thread] Current Thread [Next in Thread]