From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10045 Path: main.gmane.org!not-for-mail From: Jens Lautenbacher Newsgroups: gmane.emacs.gnus.general Subject: Re: Group highlighting Date: 01 Mar 1997 02:58:54 +0100 Message-ID: References: Reply-To: jens@lemming0.lem.uni-karlsruhe.de NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.105) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035149976 22016 80.91.224.250 (20 Oct 2002 21:39:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:39:36 +0000 (UTC) Cc: Lars Magne Ingebrigtsen Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id SAA06479 for ; Fri, 28 Feb 1997 18:08:56 -0800 Original-Received: from jens.metrix.de (jens@jens.metrix.de [194.123.88.124]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Sat, 1 Mar 1997 02:59:16 +0100 Original-Received: (from jens@localhost) by jens.metrix.de (8.7.6/8.7.3) id CAA01418; Sat, 1 Mar 1997 02:58:56 +0100 Original-To: ding@ifi.uio.no X-Face: Z[@OB)("ZvE?ev~1b+b!0ZUB.$%rh.9qE>dVf>q}Q/V?%d`J3gd!LR\aAZ8K)'\Ulb7y-7*.If^;rHl['oa)n_M7E6w+LDKMs"G8_`c)uOS1^}.1|8Ill]7X68X-paeUOpBhz writes: > Jens Lautenbacher writes: > > > There seem to be some inconsitencies with the way groups lines are > > highlighted. [blurb] > > The problem is that first a) is done and then, if it is selected, b). > > But b) overwrites any (face) changes done by a). > > Yes, this is a problem. Uhm. The fontification done by A can't be > done after B, since it's actually done while inserting the text. > Uhm. Well, perhaps the `gnus-group-highlight-line' should be > rewritten to be done before inserting anything in the buffer, so that > we know what the default face is supposed to be before inserting any > of the text? I don't know whether that's workable... Why not doing it the way I suggested: Introduce another spec for the gnus-group-format-line which, if present, will limit the area gnus-group-highlight-line will work on. This could be achived by inserting an extent spanning the area with a special property, say 'do-highlight-here set. Gnus-group-highlight-line only needs to be changed to 1) check if such an extent is present here. If not, proceed as before. 2) If it is, highlight only the area that covers this extent. If I would know how to define another spec , say something along the line %&{ ..... %} (this is not present already, is it?) I would do this, but unfortunately I didn't really understand that part from a quick glance... JTL