From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57215 Path: main.gmane.org!not-for-mail From: Chris Green Newsgroups: gmane.emacs.gnus.general Subject: gnus-label suggestion request Date: Tue, 04 May 2004 11:54:34 -0400 Organization: have you seen my office? Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083686116 22881 80.91.224.253 (4 May 2004 15:55:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 15:55:16 +0000 (UTC) Original-X-From: ding-owner+M5755@lists.math.uh.edu Tue May 04 17:55:05 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL2G9-0000KQ-00 for ; Tue, 04 May 2004 17:55:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BL2Fq-0002mm-00; Tue, 04 May 2004 10:54:46 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BL2Fj-0002mg-00 for ding@lists.math.uh.edu; Tue, 04 May 2004 10:54:39 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BL2Fj-0004GP-0R for ding@lists.math.uh.edu; Tue, 04 May 2004 10:54:39 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 2F1503A0054 for ; Tue, 4 May 2004 10:54:38 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BL2Fh-0003WK-00 for ; Tue, 04 May 2004 17:54:37 +0200 Original-Received: from pool-151-196-18-191.balt.east.verizon.net ([151.196.18.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2004 17:54:37 +0200 Original-Received: from cmg by pool-151-196-18-191.balt.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2004 17:54:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-151-196-18-191.balt.east.verizon.net User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:tWO3GAVQ39PQHN/rJ2Sx45Guwu0= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57215 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57215 Hey folks, I've gotten far enough w/ gnus label that I think it's completely feasible but I'm wondering how I should expose the user customizable stuff and how I should integrate with gnus-summary-highlight. It's ugly (and also the most complicated elisp I've done) and I'm going to spend a good bit of time cleaning up the failed experiments. (defconst gnus-label-alist '((?i . '("Important" "darkred")) (?w . '("Work" "darkblue")) (?t . '("Todo" "darkgreen")) (?l . '("Later" "brown4")) (?f . '("Fun" "purple4"))) "Alist of label names to key mappings") I've created a new gnus-summary-highlight-line that includes label-name and label-face as entries that can be used in gnus-summary-highlight. Would it be better to override gnus-summary-highlight-line-function? I couldn't find a good hook to do that from and I didn't really know what gnus-tree was supposed to be doing with that function. Right now I have a list of labels with a color and the faces get generated automatically. Would people prefer to just give a face name proper? I was trying to make it so that I only had to configure gnus-label in one spot so I could avoid having to defface each time I added a new category. I'm struggling with a good way to make marks & labels cooperate. Thanks, Chris -- Chris Green A good pun is its own reword.