From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79149 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: scanning for new mail with demon-handler Date: Mon, 20 Jun 2011 00:07:57 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87mxhdwk3m.fsf@topper.koldfront.dk> References: <874o3o760s.fsf@yun.yagibdah.de> <87d3icxuce.fsf@topper.koldfront.dk> <87r56ss2hp.fsf@yun.yagibdah.de> <877h8k9sg9.fsf@topper.koldfront.dk> <87aadgkxi3.fsf@yun.yagibdah.de> <87oc1tlqa1.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1308521373 20366 80.91.229.12 (19 Jun 2011 22:09:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2011 22:09:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27448@lists.math.uh.edu Mon Jun 20 00:09:29 2011 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 1QYQBM-0000WI-FL for ding-account@gmane.org; Mon, 20 Jun 2011 00:09:28 +0200 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 1QYQAI-0000KF-3h; Sun, 19 Jun 2011 17:08:22 -0500 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 1QYQAH-0000K8-39 for ding@lists.math.uh.edu; Sun, 19 Jun 2011 17:08:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QYQAF-0003Rb-6t for ding@lists.math.uh.edu; Sun, 19 Jun 2011 17:08:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QYQAC-0002t4-CV for ding@gnus.org; Mon, 20 Jun 2011 00:08:16 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QYQA9-0008W7-VY for ding@gnus.org; Mon, 20 Jun 2011 00:08:13 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([95.166.24.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2011 00:08:13 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2011 00:08:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk Mail-Copies-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79149 Archived-At: 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