From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27850 Path: main.gmane.org!not-for-mail From: Jan Vroonhof Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with the latest CVS build Date: 07 Dec 1999 13:27:45 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87yabbt98d.fsf@inanna.danann.net> <87r9h3t7yv.fsf@inanna.danann.net> <2nvh6fxem6.fsf@tiger.jia.vnet> <87r9h1dboh.fsf@graaff.xs4all.nl> Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA03691 for ; Tue, 7 Dec 1999 07:28:27 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id GAB13786; Tue, 7 Dec 1999 06:28:19 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 07 Dec 1999 06:28:31 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id GAA17783 for ; Tue, 7 Dec 1999 06:28:21 -0600 (CST) Original-Received: from frege.math.ethz.ch (daemon@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA03686 for ; Tue, 7 Dec 1999 07:27:56 -0500 (EST) Original-Received: (from daemon@localhost) by frege.math.ethz.ch (8.9.1/8.9.1) id NAA09072 for ; Tue, 7 Dec 1999 13:27:55 +0100 (MET) Original-Received: from bolzano(129.132.146.140) via SMTP by frege, id smtpdAAAa002Dc; Tue Dec 7 13:27:46 1999 Original-Received: (vroonhof@localhost) by bolzano (SMI-8.6/D-MATH-client) id NAA27619; Tue, 7 Dec 1999 13:27:45 +0100 Original-To: ding@gnus.org In-Reply-To: Hrvoje Niksic's message of "Tue, 07 Dec 1999 09:04:28 GMT" Original-Lines: 41 User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) XEmacs/21.1 (Bryce Canyon) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27850 Hrvoje Niksic writes: > What does this code do in nnheaderxmas.el, then: It is duplicating code from timer.el > (defun nnheader-xmas-run-at-time (time repeat function &rest args) > (start-itimer > "nnheader-run-at-time" > `(lambda () > (,function ,@args)) > time repeat)) > > (fset 'nnheader-run-at-time 'nnheader-xmas-run-at-time) > (fset 'nnheader-cancel-timer 'delete-itimer) > > AFAIK, Gnus has *never* required `timer.el' under XEmacs, probably > because one hasn't existed. This isn't supporting "itimer" at all. This is writing your own emulation library. I don't see how that is preferable over using timer.el apart from that we can then bitch a Lars if there are bugs. We need namespaces... >>From gnus-async.el (if (not (fboundp 'run-with-idle-timer)) ;; This is either an older Emacs or XEmacs, so we ;; do this, which leads to slightly slower article ;; buffer display. (gnus-async-prefetch-article group next summary) (run-with-idle-timer 0.1 nil 'gnus-async-prefetch-article group next summary))))))) Note that you need a 21.1.9 for it to actually work because itimer is broken (still lives in Emacs 18 times to much). Jan