From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45958 Path: main.gmane.org!not-for-mail From: Scott A Crosby Newsgroups: gmane.emacs.gnus.general Subject: gnus-summary-hilight change Date: 01 Aug 2002 17:09:48 -0500 Organization: Rice University Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028239827 10631 127.0.0.1 (1 Aug 2002 22:10:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2002 22:10:27 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17aO9K-0002lM-00 for ; Fri, 02 Aug 2002 00:10:26 +0200 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 17aO95-0008EQ-00; Thu, 01 Aug 2002 17:10:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 01 Aug 2002 17:10:39 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA13122 for ; Thu, 1 Aug 2002 17:10:27 -0500 (CDT) Original-Received: (qmail 24446 invoked by alias); 1 Aug 2002 22:09:54 -0000 Original-Received: (qmail 24441 invoked from network); 1 Aug 2002 22:09:54 -0000 Original-Received: from cs.rice.edu (128.42.1.30) by gnus.org with SMTP; 1 Aug 2002 22:09:54 -0000 Original-Received: from localhost (localhost [127.0.0.1]) by cs.rice.edu (Postfix) with ESMTP id 914D84AA24 for ; Thu, 1 Aug 2002 17:09:49 -0500 (CDT) Original-Received: from sam.cs.rice.edu (sam.cs.rice.edu [128.42.3.145]) by cs.rice.edu (Postfix) with ESMTP id 1F7B04A9CB for ; Thu, 1 Aug 2002 17:09:49 -0500 (CDT) Original-Received: by sam.cs.rice.edu (Postfix, from userid 14314) id B6392739E5; Thu, 1 Aug 2002 17:09:48 -0500 (CDT) Original-To: ding@gnus.org Original-Lines: 53 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) X-Virus-Scanned: by AMaViS snapshot-20020300 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45958 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45958 I was looking at gnus-summary-hilight with scoring and thought that we should have a high&low level. IE, anything between high&low should be colored normal, not just messages with a score of normal. Implementation: (setq my-gnus-high-level 100) (setq my-gnus-low-level -500) (setq gnus-summary-highlight '(((= mark gnus-canceled-mark) . gnus-summary-cancelled-face) ((and (> score my-gnus-high-level) (or (= mark gnus-dormant-mark) (= mark gnus-ticked-mark))) . gnus-summary-high-ticked-face) ((and (< score my-gnus-low-level) (or (= mark gnus-dormant-mark) (= mark gnus-ticked-mark))) . gnus-summary-low-ticked-face) ((or (= mark gnus-dormant-mark) (= mark gnus-ticked-mark)) . gnus-summary-normal-ticked-face) ((and (> score my-gnus-high-level) (= mark gnus-ancient-mark)) . gnus-summary-high-ancient-face) ((and (< score my-gnus-low-level) (= mark gnus-ancient-mark)) . gnus-summary-low-ancient-face) ((= mark gnus-ancient-mark) . gnus-summary-normal-ancient-face) ((and (> score my-gnus-high-level) (= mark gnus-unread-mark)) . gnus-summary-high-unread-face) ((and (< score my-gnus-low-level) (= mark gnus-unread-mark)) . gnus-summary-low-unread-face) ((= mark gnus-unread-mark) . gnus-summary-normal-unread-face) ((and (> score my-gnus-high-level) (memq mark (list gnus-downloadable-mark gnus-undownloaded-mark))) . gnus-summary-high-unread-face) ((and (< score my-gnus-low-level) (memq mark (list gnus-downloadable-mark gnus-undownloaded-mark))) . gnus-summary-low-unread-face) ((memq mark (list gnus-downloadable-mark gnus-undownloaded-mark)) . gnus-summary-normal-unread-face) ((> score my-gnus-high-level) . gnus-summary-high-read-face) ((< score my-gnus-low-level) . gnus-summary-low-read-face) (t . gnus-summary-normal-read-face))) Scott