From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74634 Path: news.gmane.org!not-for-mail From: Binjo Newsgroups: gmane.emacs.gnus.general Subject: issue of gnus daemon Date: Fri, 03 Dec 2010 16:23:22 +0800 Organization: Wh0 CaR3s Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291364711 30950 80.91.229.12 (3 Dec 2010 08:25:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2010 08:25:11 +0000 (UTC) To: Gnus Original-X-From: ding-owner+M22990@lists.math.uh.edu Fri Dec 03 09:25:08 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 1POQx0-0007Zc-P7 for ding-account@gmane.org; Fri, 03 Dec 2010 09:25:07 +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 1POQw4-0007gS-2k; Fri, 03 Dec 2010 02:24:08 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1POQw1-0007gF-TJ for ding@lists.math.uh.edu; Fri, 03 Dec 2010 02:24:05 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1POQw0-0006BU-7P for ding@lists.math.uh.edu; Fri, 03 Dec 2010 02:24:05 -0600 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1POQvz-0007dH-00 for ; Fri, 03 Dec 2010 09:24:03 +0100 Original-Received: by gyb13 with SMTP id 13so5211666gyb.17 for ; Fri, 03 Dec 2010 00:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:organization :date:message-id:user-agent:mime-version:content-type; bh=WKr5w0ht2Fi2qccDETATKfDdy+Shz6jw1JzrB4eDY/A=; b=M3Ij7ZviH7x7AsUM79TMcXLLukiegks4GQb1rxLajsatl3seCTZvYnmm+LXxblo1ec IFSWDkIPt3muRJr/RFobl5cIICUbSbAKYV/wsa3JztUpfmzvGgnL2rjPxRWebgBOlIDM aROdDfRvKEdoPuvncApoXWwtIMSH1J52XCXrM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:date:message-id:user-agent :mime-version:content-type; b=dd/q2As607JEjC+tM2V8Bbj/JxrxqFKD4jUdVCufxbeoVw1PoEmBMj5sIt2kY8Mp3N dyUOW02xGLK8KhGK+qz54AIVuoWtkZnNTzLLL7bA5DlJSd2wbCQHczRpZfHQMBe+Vmm+ 9dxq/JjdDsOHUyZId+5wVZEZ1yh4c0F6QW1w0= Original-Received: by 10.150.51.20 with SMTP id y20mr3372798yby.84.1291364611702; Fri, 03 Dec 2010 00:23:31 -0800 (PST) Original-Received: from unknown ([122.224.129.146]) by mx.google.com with ESMTPS id r18sm1121306yba.3.2010.12.03.00.23.26 (version=SSLv3 cipher=RC4-MD5); Fri, 03 Dec 2010 00:23:30 -0800 (PST) User-Agent: Emacs Gnus X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74634 Archived-At: hi, i use gnus demon to retrieve mail, and my settings as follows: #v+ ;; idle 2 minutes, then check news every 3 minutes. (gnus-demon-add-handler 'binjo-gnus-group-get-new-news 3 2) #v- it turns out the recent changes do not obey what the info said. M-: (info "(gnus) Daemons") #v+ 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. #v- wheras from the *imap log* buffer, i can confirm it runs `gnus-demon-run-callback' exactly every 3 mins, no matter emacs is idle or not. that's weird. 09:39:00 202 UID FETCH 1:* FLAGS 09:39:00 203 EXAMINE "Dropbox" ... 09:42:00 272 UID FETCH 1:* FLAGS 09:42:00 273 EXAMINE "Dropbox" ... 09:45:00 342 UID FETCH 1:* FLAGS 09:45:00 343 EXAMINE "Dropbox" ... i'm not able to figure out where's the problem though :< the following patch resolve issue when using such daemon handler anyway: (gnus-demon-add-handler 'binjo-gnus-group-get-new-news nil 2) diff --git a/lisp/gnus-demon.el b/lisp/gnus-demon.el index 94a4952..c146b4f 100644 --- a/lisp/gnus-demon.el +++ b/lisp/gnus-demon.el @@ -121,7 +121,8 @@ Emacs has been idle for IDLE `gnus-demon-timestep's." ;; If t, replace by 1 (time (cond ((eq time t) gnus-demon-timestep) - ((null time)) + ((null time) + nil) (t (* time gnus-demon-timestep)))) (timer (cond regards, -- Life is like a prison, can you break it?