Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: washing and `article-translate-strings' in what hook?
Date: Sat, 30 May 2015 00:54:24 +0200	[thread overview]
Message-ID: <87wpzruh9b.fsf@debian.uxu> (raw)

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 tried all the gnus-article--hooks, but none had any
effect (in this context at least).

This is confusing because I already have a hook that
is

    ;; reset: (setq gnus-article-prepare-hook nil)
    (defun gnus-article-prepare-hook-f ()
      (gnus-article-hide-signature nil 1)
      (gnus-article-fill-cited-article) )
    (add-hook 'gnus-article-prepare-hook 'gnus-article-prepare-hook-f)

and those two things happen- just not wash-more if
I put it there as well.

Ideas?

Also, I wonder if there is an option to always perform
maximum washing?

-- 
underground experts united
http://user.it.uu.se/~embe8573


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

             reply	other threads:[~2015-05-29 22:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29 22:54 Emanuel Berg [this message]
2015-05-31  0:05 ` Ben Bacarisse
     [not found] ` <mailman.4013.1433030725.904.info-gnus-english@gnu.org>
2015-06-01  0:14   ` Emanuel Berg
2015-06-01 10:08     ` Ben Bacarisse
2016-09-29 20:35       ` A smart auto-wash? (was: washing and `article-translate-strings' in what hook?) Dave Abrahams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpzruh9b.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=info-gnus-english@gnu.org \
    /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 NNTP newsgroup(s).