From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12430: Glitches caused by addition of psec to timers Date: Thu, 13 Sep 2012 22:19:59 +0300 Message-ID: <83obl9vig0.fsf@gnu.org> References: <50517770.6080207@cs.ucla.edu> <83wqzxvp0x.fsf@gnu.org> <50522A90.2080208@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1347564080 23085 80.91.229.3 (13 Sep 2012 19:21:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 19:21:20 +0000 (UTC) Cc: 12430@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 21:21:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCEyY-0007TL-Ex for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 21:21:22 +0200 Original-Received: from localhost ([::1]:35066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCEyU-00013U-G9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 15:21:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCEyR-00013O-HH for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:21:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCEyL-0001K2-Ns for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:21:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCEyL-0001Jv-KQ for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:21:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCEzC-0007r6-FT for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Sep 2012 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12430-submit@debbugs.gnu.org id=B12430.134756410130163 (code B ref 12430); Thu, 13 Sep 2012 19:22:02 +0000 Original-Received: (at 12430) by debbugs.gnu.org; 13 Sep 2012 19:21:41 +0000 Original-Received: from localhost ([127.0.0.1]:60544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCEyq-0007qR-Fy for submit@debbugs.gnu.org; Thu, 13 Sep 2012 15:21:40 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:52469) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCEyn-0007qJ-SS for 12430@debbugs.gnu.org; Thu, 13 Sep 2012 15:21:39 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MAA00500YWVMJ00@a-mtaout23.012.net.il> for 12430@debbugs.gnu.org; Thu, 13 Sep 2012 22:19:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAA005NWZ0XL930@a-mtaout23.012.net.il>; Thu, 13 Sep 2012 22:19:45 +0300 (IDT) In-reply-to: <50522A90.2080208@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64249 Archived-At: > Date: Thu, 13 Sep 2012 11:48:48 -0700 > From: Paul Eggert > CC: Stefan Monnier , 12430@debbugs.gnu.org > > On 09/13/2012 09:57 AM, Eli Zaretskii wrote: > > Wouldn't it be better to leave timers at their previous size of 8, and > > instead allow the usecs element be a floating-point number? > > That could introduce off-by-one errors due to rounding > issues. Not with correct programs that _want_ the sub-microsecond resolution. > We could have the usecs element be a list, though. > That is, (USECS PSECS) would stand for the sum of > USECS microseconds and PSECS picoseconds, whereas > a plain USECS would be treated as a microseconds count, > as before. Yes, that's also a possibility, although it is less compatible (e.g., fails the 'numberp' test). Any backward-compatible structure is better than an incompatible one. If 'timerp' just checks the number of elements in the array, so could some code out there.