Gnus development mailing list
 help / color / mirror / Atom feed
From: pete-temp-12-29-2002@kazmier.com
Subject: Treatment for gnus-article-wash-html?
Date: Thu, 02 Jan 2003 14:26:13 -0500	[thread overview]
Message-ID: <m3znqj1hgq.fsf@coco.kazmier.com> (raw)

Is there any reason why there isn't a treatment variable for
gnus-article-wash-html?  I'd like to be able to force some of my
nnrss:groups to invoke gnus-article-wash-html automatically.  I
basically want to do something like this in my .gnus:

(setq gnus-treat-wash-html     '("^nnrss:Lamba"))

In this case, my Lamba the Ultimate RSS feed sends HTML that would
automatically be washed.  Right now, I have to always type 'W h' which
is a bit tedious.  

I'm a Gnus/Emacs/Elisp newbie (1 week), but I did take a peek in
gnus-art.el to see if I could get it to work, unfortunately, I had no
success.  I tried to do something like this:

Index: lisp/gnus-art.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v
retrieving revision 6.261
diff -u -r6.261 gnus-art.el
--- lisp/gnus-art.el	2003/01/02 18:55:07	6.261
+++ lisp/gnus-art.el	2003/01/02 19:11:29
@@ -1241,6 +1241,15 @@
   :link '(custom-manual "(gnus)Customizing Articles")
   :type gnus-article-treat-custom)
 
+(defcustom gnus-treat-wash-html nil
+  "Format as HTML.
+Valid values are nil, t, `head', `last', an integer or a predicate.
+See Info node `(gnus)Customizing Articles' for details."
+  :version "21.1"
+  :group 'gnus-article-treat
+  :link '(custom-manual "(gnus)Customizing Articles")
+  :type gnus-article-treat-custom)
+
 (defcustom gnus-treat-fill-long-lines nil
   "Fill long lines.
 Valid values are nil, t, `head', `last', an integer or a predicate.
@@ -1346,6 +1355,7 @@
     (gnus-treat-buttonize-head gnus-article-add-buttons-to-head)
     (gnus-treat-display-smileys gnus-treat-smiley)
     (gnus-treat-capitalize-sentences gnus-article-capitalize-sentences)
+    (gnus-treat-wash-html gnus-article-wash-html)
     (gnus-treat-emphasize gnus-article-emphasize)
     (gnus-treat-hide-citation gnus-article-hide-citation)
     (gnus-treat-hide-citation-maybe gnus-article-hide-citation-maybe)


Any help or pointers would be appreciated.  Perhaps I'm not even going
about this the right way.

Thanks!
Pete

ps Gnus is AWESOME!



             reply	other threads:[~2003-01-02 19:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-02 19:26 pete-temp-12-29-2002 [this message]
2003-01-02 19:35 ` Lars Magne Ingebrigtsen
2003-01-02 20:21   ` pete-temp-12-29-2002
2003-01-02 20:38     ` Lars Magne Ingebrigtsen
2003-01-02 21:44       ` Pete Kazmier
2003-01-02 21:48         ` Lars Magne Ingebrigtsen
2003-01-02 22:07 ` pete-temp-12-29-2002

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=m3znqj1hgq.fsf@coco.kazmier.com \
    --to=pete-temp-12-29-2002@kazmier.com \
    /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).