From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48627 Path: main.gmane.org!not-for-mail From: Pete Kazmier Newsgroups: gmane.emacs.gnus.general Subject: Re: Treatment for gnus-article-wash-html? Date: Thu, 02 Jan 2003 16:44:24 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1041543883 29583 80.91.224.249 (2 Jan 2003 21:44:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2003 21:44:43 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18UD8s-0007h1-00 for ; Thu, 02 Jan 2003 22:44:42 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18UD8v-0002HC-00; Thu, 02 Jan 2003 15:44:45 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 02 Jan 2003 15:45:38 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA25699 for ; Thu, 2 Jan 2003 15:45:26 -0600 (CST) Original-Received: (qmail 9838 invoked by alias); 2 Jan 2003 21:44:28 -0000 Original-Received: (qmail 9833 invoked from network); 2 Jan 2003 21:44:28 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 2 Jan 2003 21:44:28 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18UDA3-0008OG-00 for ; Thu, 02 Jan 2003 22:45:55 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 52 Original-NNTP-Posting-Host: h00104bedbbc7.ne.client2.attbi.com Original-X-Trace: quimby.gnus.org 1041543955 32255 66.30.117.189 (2 Jan 2003 21:45:55 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 2 Jan 2003 21:45:55 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:1zj3ZMuBFm17m13H7evL4+MvjGk= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48627 --=-=-= Lars Magne Ingebrigtsen writes: > Hm. That's not supposed to happen... I've done some minor tweaks > to the HTML washing function, so could you try updating to the > latest CVS and see whether the problem still exists? If it does, > I'll poke around some more... The problem still exists, i.e. if I specify a string list as the value of the treatment variable, it gets applied to all parts of the article (including the headers). After looking at the code (bear in mind that I'm a complete newbie), I think I have corrected the problem. I was able to fix this behavior with the following patch. Thanks, Pete --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gnus-art.patch Content-Description: Patch to fix treatment of headers Index: lisp/gnus-art.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v retrieving revision 6.264 diff -u -r6.264 gnus-art.el --- lisp/gnus-art.el 2003/01/02 20:45:14 6.264 +++ lisp/gnus-art.el 2003/01/02 21:30:06 @@ -6253,6 +6253,8 @@ (cond ((null val) nil) + (condition + (eq condition val)) ((and (listp val) (stringp (car val))) (apply 'gnus-or (mapcar `(lambda (s) @@ -6271,8 +6273,6 @@ (equal (car val) type)) (t (error "%S is not a valid predicate" pred))))) - (condition - (eq condition val)) ((eq val t) t) ((eq val 'head) --=-=-=--