[Top][All Lists]

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

Re: washing and `article-translate-strings' in what hook?

From: Ben Bacarisse
Subject: Re: washing and `article-translate-strings' in what hook?
Date: Sun, 31 May 2015 01:05:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Emanuel Berg <> writes:

> I have a function that is
>     (defun gnus-article-wash-more ()
>       "Perform additional article washing."
>       (interactive)
>       (article-translate-strings
>        '(
>          ("Sendt fra min iPad" "")
>          ("Skickat från Yahoo Mail för iPhone" "")
>          ;; ...
>          ))
>       (gnus-article-strip-multiple-blank-lines) )
> which works when called interactively from an
> article buffer.
> However I can't find a hook to put it in to have it
> executed automatically each time!

I think you need to wrap the body in

  (gnus-with-article-buffer ...)

This will have the added effect of making the interactive function work
from the summary buffer window (provided there is a current article in
some buffer, of course).


reply via email to

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