From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75383 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-demon question Date: Wed, 22 Dec 2010 08:49:27 +0100 Message-ID: <874oa61c3c.fsf@member.fsf.org> References: <87sjxqe23b.fsf@noorul.maa.corp.collab.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293004202 12064 80.91.229.12 (22 Dec 2010 07:50:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 07:50:02 +0000 (UTC) Cc: ding@gnus.org To: Noorul Islam K M Original-X-From: ding-owner+M23735@lists.math.uh.edu Wed Dec 22 08:49:58 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 1PVJSP-0006ML-K0 for ding-account@gmane.org; Wed, 22 Dec 2010 08:49:57 +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 1PVJSA-0002Ae-0w; Wed, 22 Dec 2010 01:49:42 -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 1PVJS8-0002AT-Lu for ding@lists.math.uh.edu; Wed, 22 Dec 2010 01:49:40 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PVJRy-0004cg-6Y for ding@lists.math.uh.edu; Wed, 22 Dec 2010 01:49:40 -0600 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PVJRx-0003Vb-8W for ding@gnus.org; Wed, 22 Dec 2010 08:49:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D32847801695; Wed, 22 Dec 2010 08:49:28 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30067-05; Wed, 22 Dec 2010 08:49:28 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 425847801694; Wed, 22 Dec 2010 08:49:27 +0100 (CET) In-Reply-To: <87sjxqe23b.fsf@noorul.maa.corp.collab.net> (Noorul Islam K. M.'s message of "Wed, 22 Dec 2010 12:17:04 +0530") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75383 Archived-At: 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? Bye, Tassilo -- Sent from my Emacs