From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49662 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: Re: new feature request: highlights on scoring matches Date: Mon, 27 Jan 2003 07:54:44 -0800 Organization: Network Associates Laboratories 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 1043682863 10507 80.91.224.249 (27 Jan 2003 15:54:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 15:54:23 +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 18dBaW-0002jF-00 for ; Mon, 27 Jan 2003 16:54:21 +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 18dBbL-0003lx-00; Mon, 27 Jan 2003 09:55:11 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 27 Jan 2003 09:56:08 -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 JAA13098 for ; Mon, 27 Jan 2003 09:55:56 -0600 (CST) Original-Received: (qmail 98822 invoked by alias); 27 Jan 2003 15:54:54 -0000 Original-Received: (qmail 98817 invoked from network); 27 Jan 2003 15:54:54 -0000 Original-Received: from adsl-66-127-127-227.dsl.scrm01.pacbell.net (HELO localhost.localdomain) (@66.127.127.227) by 66.230.238.6 with SMTP; 27 Jan 2003 15:54:54 -0000 Original-Received: (from hardaker@localhost) by localhost.localdomain (8.11.6/8.11.6) id h0RFsio02985; Mon, 27 Jan 2003 07:54:44 -0800 Original-To: ding@gnus.org X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 24 Jan 2003 22:20:14 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.5 (brussels sprouts, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49662 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49662 >>>>> On Fri, 24 Jan 2003 22:20:14 +0100, Lars Magne Ingebrigtsen said: Lars> Hm... These expressions would do nothing but highlight regions Lars> in the summary buffer? Yes, and then the scoring code could add Lars> more of these matches to the mechanism, like you say. Yes, that Lars> sounds a lot cleaner than hacking up something in the scoring Lars> code itself. That's what I thought. Lars> On the other hand, if the score rule is, say "^hello" on Lars> Subject, just adding that to a list of highlighting regexps and Lars> running it over the buffer won't match anything. And there'll Lars> be misleading matches between, say, Subject and From as Lars> displayed. Err, good point. Lars> No, perhaps it isn't as simple as that. The highlighting would Lars> have to be applied before the strings are entered into the Lars> buffer. That could be done by transforming a copy of the header Lars> structure before it is inserted into the buffer... Well, just having a basic-infrastructure for highlighting I think is the first correct step. If nothing else, people can hind-rewrite their expressions for scoring for highlighting use. I wonder if there are any tricky cases other than ^ and $. I'd have to think about it, because otherwise those could be easily replaced. err, no they couldn't as the summary line format is different for every person. arg. -- "The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it." -- Terry Pratchett