From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43665 Path: quimby.gnus.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: the gnus-newsgroup-unseen mark is too sticky Date: Tue, 26 Feb 2002 19:17:26 +0100 Message-ID: References: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014747867 18619 195.204.10.66 (26 Feb 2002 18:24:27 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 26 Feb 2002 18:24:27 GMT Cc: ding Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16fmH3-0004q8-00; Tue, 26 Feb 2002 19:24:26 +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 16fmB5-0003F2-00; Tue, 26 Feb 2002 12:18:15 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 26 Feb 2002 12:18:16 -0600 (CST) 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 MAA21093 for ; Tue, 26 Feb 2002 12:17:56 -0600 (CST) Original-Received: (qmail 9625 invoked by alias); 26 Feb 2002 18:17:40 -0000 Original-Received: (qmail 9620 invoked from network); 26 Feb 2002 18:17:39 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 26 Feb 2002 18:17:39 -0000 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g1QIHZKY018959; Tue, 26 Feb 2002 19:17:37 +0100 Original-To: Bill White In-Reply-To: (Bill White's message of "Tue, 26 Feb 2002 08:02:28 -0600") Mail-Copies-To: nobody Original-Lines: 44 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: quimby.gnus.org gmane.emacs.gnus.general:43665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43665 Bill White writes: > (defvar gnus-newsgroup-unseen nil > "List of unseen articles in the current newsgroup.") > > I'm not sure of the philosophy of "unseen" messages, but there is one > instance when this feature doesn't DWIM. Say I have a Summary buffer > with some unseen messages, which are marked with ".". I go to one of > these messages and select it, mark it as read, delete it, whatever. > The "." is still there, when it is really no longer "unseen". > > Why is this an issue, you ask? Well, I have code that highlights > unseen messages with a special face: > > ---------------------------------------------------------------------- > (defface gnus-summary-unseen-face > '((((class color)) > (:foreground "gold" :background "black"))) > "Face used for unseen (.-marked) articles.") > > (require 'gnus-sum) > (require 'cl) > > (pushnew '((memq (gnus-summary-article-number) > gnus-newsgroup-unseen) > . gnus-summary-unseen-face) > gnus-summary-highlight) > ---------------------------------------------------------------------- > > After I read one of these nicely-colored unseen messages, the "." > mark still lingers so the function that highlights a line thinks it's > still unseen. > > I would expect the "." to disappear so that other highlighting could > take effect after I'm done with the article. Is this possible? Add a function to `gnus-mark-article-hook' that removes the unseen mark when you select an article. I'm not sure the behaviour you suggest should be the default, with the current system you can separate articles you have read in the current summary buffer ("R.") from articles you read before ("R "). If articles are marked as unseen directly when you read them ("R "), you lose that option.