Gnus development mailing list
 help / color / mirror / Atom feed
* Treatment for gnus-article-wash-html?
@ 2003-01-02 19:26 pete-temp-12-29-2002
  2003-01-02 19:35 ` Lars Magne Ingebrigtsen
  2003-01-02 22:07 ` pete-temp-12-29-2002
  0 siblings, 2 replies; 7+ messages in thread
From: pete-temp-12-29-2002 @ 2003-01-02 19:26 UTC (permalink / 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!



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-02 22:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02 19:26 Treatment for gnus-article-wash-html? pete-temp-12-29-2002
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

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).