Gnus development mailing list
 help / color / mirror / Atom feed
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Subject: Re: Problem with the latest CVS build
Date: 07 Dec 1999 13:27:45 +0100	[thread overview]
Message-ID: <byvh6b6im6.fsf@bolzano.math.ethz.ch> (raw)
In-Reply-To: Hrvoje Niksic's message of "Tue, 07 Dec 1999 09:04:28 GMT"

Hrvoje Niksic <hniksic@iskon.hr> writes:

> What does this code do in nnheaderxmas.el, then:

<To play the devels-advocate:> 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...

</To play the devels-advocate>

>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


  parent reply	other threads:[~1999-12-07 12:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-04  8:12 Daniel Pittman
1999-12-04  8:31 ` Lars Magne Ingebrigtsen
1999-12-04  8:40   ` Daniel Pittman
1999-12-04  9:02     ` Shenghuo ZHU
1999-12-04 11:18       ` Mike Fabian
1999-12-04 13:27       ` William M. Perry
1999-12-05  0:21         ` Dave Love
1999-12-05  0:19       ` Dave Love
1999-12-05  1:45       ` Lloyd Zusman
1999-12-05  8:38         ` Hans de Graaff
1999-12-05 18:28           ` Lloyd Zusman
1999-12-05 18:41             ` Lloyd Zusman
1999-12-05 21:02               ` Hans de Graaff
1999-12-06 17:44                 ` Hrvoje Niksic
1999-12-06 19:13             ` Jan Vroonhof
     [not found]             ` <ltr9h1s01u.fsf@ <byhfhvubli.fsf@urysohn.math.ethz.ch>
1999-12-07  8:20               ` Hrvoje Niksic
1999-12-07 12:27             ` Jan Vroonhof [this message]
1999-12-05 22:58         ` Kai Großjohann
1999-12-05 23:03           ` Lloyd Zusman
1999-12-05 23:24           ` Lloyd Zusman
1999-12-06 10:33             ` Gunnar Evermann
1999-12-06 15:48               ` Lloyd Zusman
1999-12-06 22:42                 ` Kai Großjohann

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=byvh6b6im6.fsf@bolzano.math.ethz.ch \
    --to=vroonhof@math.ethz.ch \
    /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).