[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: |
Adam Funk |
Subject: |
Re: Macro to fold References header in news or mail onto multiple lines? |
Date: |
Wed, 25 Oct 2006 19:31:05 +0100 |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
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. ;-)