From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28653 Path: main.gmane.org!not-for-mail From: "Jody M. Klymak" Newsgroups: gmane.emacs.gnus.general Subject: Re: New mail indicator Date: 07 Jan 2000 09:38:01 -0800 Organization: APL/School of Oceanography, UW Sender: owner-ding@hpc.uh.edu Message-ID: References: <86ogaye150.fsf@mediawars.ne.jp> <86d7rexcf6.fsf@mediawars.ne.jp> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035165462 30951 80.91.224.250 (21 Oct 2002 01:57:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:57:42 +0000 (UTC) Cc: Shigeki Uno , ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 0E4E7D051F for ; Fri, 7 Jan 2000 12:43:27 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB20265; Fri, 7 Jan 2000 11:39:52 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Jan 2000 11:39:53 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA11149 for ; Fri, 7 Jan 2000 11:39:42 -0600 (CST) Original-Received: from kraken.apl.washington.edu (kraken97.apl.washington.edu [128.95.97.25]) by mailhost.sclp.com (Postfix) with ESMTP id F2E44D0521 for ; Fri, 7 Jan 2000 12:38:07 -0500 (EST) Original-Received: from GALIANO (galiano.apl.washington.edu [128.95.96.142]) by kraken.apl.washington.edu (8.9.1/8.9.1) with ESMTP id JAA00793; Fri, 7 Jan 2000 09:38:00 -0800 (PST) X-Spook: colonel munitions ammunition domestic disruption nuclear Marxist South Africa supercomputer counter-intelligence fissionable spy kibo DES quiche radar Original-To: Roman Belenov X-Attribution: JMK X-Face: "<0QfOpaV_W5z+[E9oe02A4UO.(a>zMQP0L@EUnqJoL.LnZRJ:zf9h5!I\qA$S3NHkKc*hd ;N0osYNwiO@_^H"[!{:9L*4-DqE5=xGGMz&u+4wx,t{/v.4 ~r?&m~W>u8zQq,va5}2im<1Ayy:/>sC+Fr30K!gliWS1r/)Q.5!|vN In-Reply-To: Roman Belenov's message of "07 Jan 2000 19:56:27 +0300" Original-Lines: 38 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28653 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28653 Roman, Is it possible to modify the demon to update the modeline? i.e. I have the following running under the gnus-use-demon... (defun gnus-demon-scan-mail-groups1 () (save-window-excursion (when (gnus-alive-p) (save-excursion (set-buffer gnus-group-buffer) (gnus-group-get-new-news 1))))) Is there a way to count how many messages are in the group-1 groups and then change the modeline? It would't update the modeline directly after your ead your messages, but it would next time you ran the demon. Let us know what you come up with - this would be a fun thing to have, Cheers, Jody RB> BTW I altered my mode line to show the number of unread RB> messages (if there are any), but encountered the following RB> problem: is there a hook that is called *after* the article RB> was marked as read. I defined a function that changes the RB> modeline and call it after the new mail was obtained (via RB> gnus-after-getting-new-news-hook), but it also should be RB> called when articles are marked as read so what mode line will RB> always present correct number of unread articles; I tried some RB> hooks like gnus-mark-article-hook without success. Are there RB> any suitable hooks for this ? -- Jody Klymak APL/School of Oceanography, Doctoral Candidate University of Washington mailto:jklymak@apl.washington.edu (206)-685-9080 http://www.ocean.washington.edu/people/grads/jklymak/