Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: scanning for new mail with demon-handler
Date: Mon, 20 Jun 2011 00:07:57 +0200	[thread overview]
Message-ID: <87mxhdwk3m.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <87oc1tlqa1.fsf@nzebook.haselwarter.org>

On Sun, 19 Jun 2011 18:49:58 +0200, Philipp wrote:

> +(fset 'gnus-demon-scan-news-1
> +  (apply-partially 'gnus-demon-scan-news 1))
> +(fset 'gnus-demon-scan-news-2
> +  (apply-partially 'gnus-demon-scan-news 2))

[...snipped the last 7...]

That looks like... there must be a better way than such repetition?

>   (gnus-demon-add-handler 'gnus-demon-scan-news-1 121 10)

Maybe you could do something like a lambda here instead? Along the lines
of

 (gnus-demon-add-handler '(lambda () (gnus-demon-scan-news 1)) 121 10)

or something?


  Best regards,

    Adam - not an expert.

-- 
 "That's one of the remarkable things about life. It's        Adam Sjøgren
  never so bad that it can't get worse."                 asjo@koldfront.dk




  parent reply	other threads:[~2011-06-19 22:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 16:54 lee
2011-06-17 17:04 ` Adam Sjøgren
2011-06-17 19:05   ` lee
2011-06-17 19:17     ` Adam Sjøgren
2011-06-17 19:19     ` Adam Sjøgren
2011-06-17 20:34       ` lee
2011-06-19 16:49         ` Philipp Haselwarter
2011-06-19 18:08           ` lee
2011-06-19 22:07           ` Adam Sjøgren [this message]
2011-06-20  2:19             ` Philipp Haselwarter

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=87mxhdwk3m.fsf@topper.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    /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).