From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49590 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: new feature request: highlights on scoring matches Date: Fri, 24 Jan 2003 22:20:14 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043443175 14423 80.91.224.249 (24 Jan 2003 21:19:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2003 21:19:35 +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 18cBEW-0003k8-00 for ; Fri, 24 Jan 2003 22:19:28 +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 18cBFa-0002S7-00; Fri, 24 Jan 2003 15:20:34 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 24 Jan 2003 15:21:30 -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 PAA06685 for ; Fri, 24 Jan 2003 15:21:14 -0600 (CST) Original-Received: (qmail 14677 invoked by alias); 24 Jan 2003 21:20:14 -0000 Original-Received: (qmail 14672 invoked from network); 24 Jan 2003 21:20:14 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 24 Jan 2003 21:20:14 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18cBGa-0000os-00 for ; Fri, 24 Jan 2003 22:21:36 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 30 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1043443296 2758 80.91.231.2 (24 Jan 2003 21:21:36 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 24 Jan 2003 21:21:36 GMT Mail-Copies-To: never X-Now-Playing: The Soft Pink Truth's _PromoFunk_: "Gender Studies" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEV/ABxsAAzkjnFlAAh8 Bx6CAB17ABl4ABZyABByABEEysFsAAACRUlEQVR4nFWTMW/bMBCFbwi5017UrRDyB2xN3YKAbpuN KMzMGgqq2YogkKxRRYFSo4MCEv9t3x2pIKUH6/jde3dHUXRNS98ShX7A4ofQjem6b+gRILQIsd8H XgNA84m8DsjjRGyTLN2N5kDeAYAi87ttz9baO9JP1wYAOV7IjSWlHAKnR0NeKe8A4HdjvfdCaEzk 2VU5TaywJy+LukTOUSuFClBi3L1KviIodAaOYOwYaFKi3gBHTgOEn7BiQgKkR6+febYMPJ1PwlGV wjPptuy73C4TkuIQqKIoAD0C8AHl5r0AJ6c1vFILL1XAKQPnGPBBqyIoCrWBXORcY0kJ7x/HXwxk eH/P4Fa0Sj8BdAL8t1qWkr7CpkB0nwFGx7FpALxomTDv17fyclnR5a7OG3BaZzB0oigl6hrngQEZ DDLfG5DBwoVB/x/oepgPaQcQ3nVb18PQdcO47ogvYmj1y1acb+qQIkBa8DTGAj5mMB1pAVjSGsuA d7jDsJp2NLNknuPvDIIoVoBqjQmCWInkM+46/1gRpzijmkhsH95bwSutUP1dlyEvBnFNL+OYZgAT /4AwXM2OTJXs15SBiRCPrDdHQmC/SCexilwtJXxrsDLmg32A6zwZKGbWwpkVxtiHEV0ZBhGOib/a I1UM5lVAFTEpjzU1WfEjZgEawVNcJ1PAJaLAvjmwBDECAZW9rNIs+khpqqp0FSDiXBoFKrHcNw0r 4lbCJGl6AyYazmtQI2/usd/QYZ/DA4IDEP6RA5ATm7LeHpp/eUlIMGiXubcAAAAASUVORK5CYII= User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:JjdgsFCfI2Yjoj1s804QphRqCms= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49590 Wes Hardaker writes: > Actually, I think eudora has the ability to color-code stuff based on > expression. That might be a easier way to pull it off. Don't make it > tied to scoring at all but make a general "highlight" set of > expressions and face changes. Then, the scoring regexps could be > added to the more generic highlighting set if desired as well. Hm... These expressions would do nothing but highlight regions in the summary buffer? Yes, and then the scoring code could add more of these matches to the mechanism, like you say. Yes, that sounds a lot cleaner than hacking up something in the scoring code itself. Anyone want to take a whack at doing functionality for highlighting regexps in the summary buffer? It would probably make sense to do this after the lines have been generated. On the other hand, if the score rule is, say "^hello" on Subject, just adding that to a list of highlighting regexps and running it over the buffer won't match anything. And there'll be misleading matches between, say, Subject and From as displayed. No, perhaps it isn't as simple as that. The highlighting would have to be applied before the strings are entered into the buffer. That could be done by transforming a copy of the header structure before it is inserted into the buffer... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen