[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change article "From" field
From: |
Katsumi Yamaoka |
Subject: |
Re: Change article "From" field |
Date: |
Wed, 06 Feb 2008 15:36:41 +0900 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
>>>>> William Xu wrote:
[...]
> gnus-article-prepare-hook, calling something like:
> ,----
>| (gnus-summary-edit-article 2)
>| (goto-char (point-min))
>| (insert (format "From: %s\n" author))
>| (gnus-article-edit-done)
> `----
> But it looks like this will be called again and again. Am I using the
> wrong hook?
`gnus-article-edit-done' calls `gnus-article-prepare-hook' when
re-displaying the article, so this will help:
(let ((gnus-article-prepare-hook nil))
(gnus-article-edit-done))