From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: [PATCH] When testing, fake the current time more robustly Date: Tue, 12 Feb 2019 20:03:55 -0500 Message-ID: <8736os8pok.fsf@kyleam.com> References: <20190212224423.3388-1-eggert@cs.ucla.edu> <875zto8t2b.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtiy4-0007gV-By for Emacs-orgmode@gnu.org; Tue, 12 Feb 2019 20:04:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtiy0-0007LC-Du for Emacs-orgmode@gnu.org; Tue, 12 Feb 2019 20:04:02 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]:53014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtixy-0007FD-WF for Emacs-orgmode@gnu.org; Tue, 12 Feb 2019 20:04:00 -0500 In-Reply-To: <875zto8t2b.fsf@kyleam.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Paul Eggert , Emacs-orgmode@gnu.org Kyle Meyer writes: > Paul Eggert writes: > >> The old approach required Lisp code to use (current-time) >> explicitly when calling other primitives, e.g., (float-time >> (current-time)). The new approach fakes all the primitives, >> so that Lisp code can now use expressions like plain (float-time). > > Great, thanks! I'll go through all the spots where I've > s/nil/(current-time)/ for the sake of testing and restore nil. Pushed (2cd1f9b028b) along with a follow-up commit removing current-time calls that were kept for testing purposes.