From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75384 Path: news.gmane.org!not-for-mail From: Noorul Islam K M Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-demon question Date: Wed, 22 Dec 2010 14:19:54 +0530 Message-ID: <87bp4edwel.fsf@noorul.maa.corp.collab.net> References: <87sjxqe23b.fsf@noorul.maa.corp.collab.net> <874oa61c3c.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293007974 27445 80.91.229.12 (22 Dec 2010 08:52:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 08:52:54 +0000 (UTC) Cc: ding@gnus.org To: Tassilo Horn Original-X-From: ding-owner+M23736@lists.math.uh.edu Wed Dec 22 09:52:50 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVKRE-0003sI-QQ for ding-account@gmane.org; Wed, 22 Dec 2010 09:52:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PVKQg-0002Rh-TW; Wed, 22 Dec 2010 02:52:14 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PVKQe-0002RT-0H for ding@lists.math.uh.edu; Wed, 22 Dec 2010 02:52:12 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PVKQc-0004nO-9x for ding@lists.math.uh.edu; Wed, 22 Dec 2010 02:52:11 -0600 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PVKQb-0004cl-6G for ding@gnus.org; Wed, 22 Dec 2010 09:52:09 +0100 Original-Received: by iyi42 with SMTP id 42so4160180iyi.17 for ; Wed, 22 Dec 2010 00:52:02 -0800 (PST) Original-Received: by 10.231.13.203 with SMTP id d11mr6553232iba.33.1293007922674; Wed, 22 Dec 2010 00:52:02 -0800 (PST) Original-Received: from noorul.maa.corp.collab.net (nat2.maa.collab.net [208.87.9.2]) by mx.google.com with ESMTPS id i16sm5366669ibl.18.2010.12.22.00.51.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Dec 2010 00:52:02 -0800 (PST) In-Reply-To: <874oa61c3c.fsf@member.fsf.org> (Tassilo Horn's message of "Wed, 22 Dec 2010 08:49:27 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75384 Archived-At: Tassilo Horn writes: > Noorul Islam K M writes: > >> I have the following settings. >> >> (gnus-demon-add-handler 'gnus-group-get-new-news 15 t) >> (gnus-demon-init) > > The `gnus-demon-init' is not needed. `gnus-demon-add-handler' calls it > already. Your code 1) adds a new handler, 2) kills all old handlers and > initializes them anew (gnus-demon-init), and then does 2) again. > >> But still it looks like, emacs is not checking mails every 15 minutes >> and also the *Group* buffer is not getting updated. > > Looking at the docs > > ,----[ (info "(gnus)Daemons") ] > | If IDLE is `t', then the function will be called after TIME minutes > | only if Emacs is idle. So if Emacs is never idle, the function will > | never be called. But once Emacs goes idle, the function will be called > | every TIME minutes. > `---- > > Hm, reading that statement, I'd say that your code would check every 15 > minutes if emacs is idle, and if so, call `gnus-group-get-new-news'. > > But looking at the code > > (gnus-demon-add-handler 'gnus-group-get-new-news 15 t) > > is equivalent to > > (gnus-demon-add-handler 'gnus-group-get-new-news 15 15) > > ,----[ (info "(gnus)Daemons") ] > | If IDLE is a number and TIME is a number, the function will be > | called every TIME minutes only when Emacs has been idle for IDLE > | minutes. > `---- > > So your code will call `gnus-group-get-new-news' every 15 minutes after > emacs has been idle for at least 15 minutes. That's pretty seldomly, I > guess... > > So what's wrong? Code, documentation, or my understanding of the code? The same setup was working when I was using Gnus. I use emacs as I was using earlier. So the idleness remains the same. There are days when I lock the system for several hours. Still there is no effect. Thanks and Regards Noorul