Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: "Håkon Stordahl" <haastord@online.no>
Cc: ding@gnus.org
Subject: Re: Problem with mail-source-report-new-mail
Date: Thu, 06 Dec 2007 12:09:35 +0900	[thread overview]
Message-ID: <b4mfxyg8qog.fsf@jpl.org> (raw)
In-Reply-To: <v9odd4uav5.fsf@marauder.physik.uni-ulm.de>

>>>>> 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åkon 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'?



      reply	other threads:[~2007-12-06  3:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87mysp5cfk.fsf@haakonst1.dyndns.org>
2007-12-05 20:47 ` Reiner Steib
2007-12-06  3:09   ` Katsumi Yamaoka [this message]

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=b4mfxyg8qog.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    --cc=haastord@online.no \
    /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).