From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: [almer@gnome.org: Zone] Date: 13 Jun 2002 21:52:41 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200206122347.g5CNlvf05976@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024085558 10087 127.0.0.1 (14 Jun 2002 20:12:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 20:12:38 +0000 (UTC) Cc: emacs-devel@gnu.org, "Almer S. Tigelaar" Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17IxR0-0002ca-00 for ; Fri, 14 Jun 2002 22:12:38 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Ixpv-000591-00 for ; Fri, 14 Jun 2002 22:38:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17IxQo-0002QR-00; Fri, 14 Jun 2002 16:12:26 -0400 Original-Received: from protactinium.btinternet.com ([194.73.73.176]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17IxQM-0002O4-00; Fri, 14 Jun 2002 16:11:58 -0400 Original-Received: from host62-7-47-96.in-addr.btopenworld.com ([62.7.47.96] helo=nyaumo.btinternet.com) by protactinium.btinternet.com with esmtp (Exim 3.22 #8) id 17IxQJ-0005jn-00; Fri, 14 Jun 2002 21:11:56 +0100 Original-Received: from nyaumo.btinternet.com (nyaumo.btinternet.com [127.0.0.1]) by nyaumo.btinternet.com (Postfix) with ESMTP id 038084AFC8; Thu, 13 Jun 2002 21:52:41 +0100 (BST) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4874 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4874 Jason Rumney writes: > zone-when-idle 180 does indeed give a delay of around 18 seconds. > But zone-when-idle 20 gives a delay of 20 seconds, so it is not as > simple as a multiple of 10 out. I get the same results on GNU/Linux, > so it is probably a bug in zone rather than a low level timer bug > specific to Windows. In fact, what I saw was the somewhat surprising behaviour that after running (zone-when-idle 20), (zone-when-idle 180) does not change the idle period to 180 seconds, but leaves it as 20 seconds. On both platforms, calling zone-leave-me-alone before (zone-when-idle 180) results in the expected behaviour. > "Almer S. Tigelaar" writes: > > I noticed an error in the "zone" package, it seems that the argument to > > "zone-when-idle" is not in seconds but in 1/10ths of a second. > > Reproduction: > > try "M-x zone-when-idle 180" > > Sit back and don't touch anything, notice that it zones out after 18 > > seconds, not 180 as the documentation suggests. > > Remarks: > > The "run-with-idle-timer" function does not exhibit this malfunction which > > suggests that the problem lies within the zone package itself.