From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65895 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with mail-source-report-new-mail Date: Thu, 06 Dec 2007 12:09:35 +0900 Organization: Emacsen advocacy group Message-ID: References: <87mysp5cfk.fsf@haakonst1.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1196910655 30333 80.91.229.12 (6 Dec 2007 03:10:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 03:10:55 +0000 (UTC) Cc: ding@gnus.org To: =?iso-8859-1?Q?H=E5kon?= Stordahl Original-X-From: ding-owner+M14390@lists.math.uh.edu Thu Dec 06 04:11:04 2007 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.50) id 1J078h-0003oq-1c for ding-account@gmane.org; Thu, 06 Dec 2007 04:11:03 +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 1J077f-0000u4-CT; Wed, 05 Dec 2007 21:09:59 -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 1J077d-0000to-GV for ding@lists.math.uh.edu; Wed, 05 Dec 2007 21:09:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J077X-0007kj-Bh for ding@lists.math.uh.edu; Wed, 05 Dec 2007 21:09:57 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J077U-0008QX-00 for ; Thu, 06 Dec 2007 04:09:48 +0100 Original-Received: from [66.225.201.151] (port=37815 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1J077Q-0002IX-K9; Wed, 05 Dec 2007 21:09:45 -0600 X-Hashcash: 1:20:071206:haastord@online.no::N1aq/Xxkcw7iYTfa:00000000000000000000000000000000000000000005Pe8 X-Hashcash: 1:20:071206:ding@gnus.org::IB3GLpFTfbu8G/VJ:00001nJl X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:y8MJILse+mfTrryxxIAkHwp3Sx4= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65895 Archived-At: >>>>> Reiner Steib wrote: >> diff -Naur a/lisp/mail-source.el b/lisp/mail-source.el >> --- a/lisp/mail-source.el 2007-11-27 23:42:52.000000000 +0000 >> +++ b/lisp/mail-source.el 2007-11-30 04:39:08.000000000 +0000 >> @@ -937,11 +937,11 @@ >> #'mail-source-start-idle-timer)) >> ;; When you get new mail, clear "Mail" from the mode line. >> (add-hook 'nnmail-post-get-new-mail-hook >> - 'display-time-event-handler) >> + 'gnus-display-time-event-handler) >> (message "Mail check enabled")) >> (setq display-time-mail-function nil) >> (remove-hook 'nnmail-post-get-new-mail-hook >> - 'display-time-event-handler) >> + 'gnus-display-time-event-handler) >> (message "Mail check disabled")))) >> >> (defun mail-source-fetch-maildir (source callback) > I don't use timers for Gnus. Does anyone see a problem with this > patch? I verified that the error occurs as H=E5kon reported and the patch solves it. But I think that mail-source.el requires gnus-start.el is not a good idea. How about moving `gnus-display-time-event-handler' to somewhere (e.g. gmm-util.el) or making a copy of it as `mail-source-display-time-event-handler'?