From: "Jody M. Klymak" <jklymak@apl.washington.edu>
Cc: Shigeki Uno <shigeki@mediawars.ne.jp>, ding@gnus.org
Subject: Re: New mail indicator
Date: 07 Jan 2000 09:38:01 -0800 [thread overview]
Message-ID: <bt6xhjeu.fsf@apl.washington.edu> (raw)
In-Reply-To: Roman Belenov's message of "07 Jan 2000 19:56:27 +0300"
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/
next prev parent reply other threads:[~2000-01-07 17:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-06 19:37 Roman Belenov
2000-01-06 19:53 ` Karl Kleinpaste
2000-01-07 8:28 ` Shigeki Uno
2000-01-07 9:47 ` Roman Belenov
2000-01-07 10:00 ` Kai Großjohann
2000-01-07 10:10 ` Roman Belenov
2000-01-07 10:17 ` Kai Großjohann
2000-01-07 10:34 ` Roman Belenov
2000-01-07 13:02 ` Shigeki Uno
2000-01-07 16:56 ` Roman Belenov
2000-01-07 17:38 ` Jody M. Klymak [this message]
2000-01-07 18:53 ` Roman Belenov
2000-01-07 18:15 ` François Pinard
2000-01-07 18:24 ` Kai Großjohann
[not found] ` <ur9fu19g2.fsf@eai-delta.de>
2000-01-07 10:15 ` Roman Belenov
2000-01-07 10:20 ` Roman Belenov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bt6xhjeu.fsf@apl.washington.edu \
--to=jklymak@apl.washington.edu \
--cc=ding@gnus.org \
--cc=shigeki@mediawars.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).