From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/12840 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.gnus.general Subject: Idleness Date: 16 Nov 1997 03:06:59 +0100 Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152307 5978 80.91.224.250 (20 Oct 2002 22:18:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:18:27 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id TAA19974 for ; Sat, 15 Nov 1997 19:30:59 -0800 Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA28524 for ; Sat, 15 Nov 1997 21:31:16 -0600 (CST) Original-Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130]) by ifi.uio.no (8.8.7/8.8.7/ifi0.2) with ESMTP id DAA05007 for ; Sun, 16 Nov 1997 03:07:07 +0100 (MET) Original-Received: (from hniksic@localhost) by jagor.srce.hr (8.8.8/8.8.8) id DAA21193; Sun, 16 Nov 1997 03:07:00 +0100 (MET) Original-To: ding@ifi.uio.no X-Attribution: Hrvoje X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/xDi&N7XG KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&Ff%x_>1`T(+M2Gg/fgndU%k*ft [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J Original-Lines: 21 X-Mailer: Quassia Gnus v0.12/XEmacs 20.3(beta94) - "Madrid" Xref: main.gmane.org gmane.emacs.gnus.general:12840 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:12840 I noticed the code like this in gnus-util: (defun gnus-demon-is-idle-p () "Whether Emacs is idle or not." ;; We do this simply by comparing the 100 most recent keystrokes ;; with the ones we had last time. If they are the same, one might ;; guess that Emacs is indeed idle. This only makes sense if one ;; calls this function seldom -- like once a minute, which is what ;; we do here. [...] Why use these hacks, instead of the standard XEmacs IS-IDLE argument to `start-itimer', or FSFmacs `run-with-idle-timer'? Not that the above hack doesn't work, but I just don't see the point... Is it a compatibility thing? -- Hrvoje Niksic | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- I'm sure they'll listen to reason! -- Neal Stevenson, _Snow Crash_