From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: org-today broken Date: Fri, 01 Feb 2019 14:23:03 +0100 Message-ID: <87womjk5hk.fsf@mbork.pl> References: <874l9o9mev.fsf@kyleam.com> <84y36yjw8r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpYnR-0000QY-OU for emacs-orgmode@gnu.org; Fri, 01 Feb 2019 08:23:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpYnQ-0003Ib-HT for emacs-orgmode@gnu.org; Fri, 01 Feb 2019 08:23:53 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:55142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpYnP-0003GB-DS for emacs-orgmode@gnu.org; Fri, 01 Feb 2019 08:23:52 -0500 In-reply-to: <84y36yjw8r.fsf@gmail.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: Marco Wahl Cc: emacs-orgmode@gnu.org On 2019-02-01, at 13:55, Marco Wahl wrote: > Kyle Meyer writes: > >> Samuel Wales writes: >> >>> recent versions of maint and probably master have nil instead of >>> current time in org-today. >>> >>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >>> time-subtract(nil (0 0 0)) >>> org-today() >>> (message "org today is %s" (org-today)) >> >> Thanks for the report. I introduced this and a handful of other related >> incompatibilities with my port of Emacs's c75f505de. I've reverted the >> problematic spots. > > Thanks for the revert! > > Occasionally I like to bend time to see what the agenda would look like > if another day was current. This can be achieved conveniently when > solely function "current-time" is the source for the current time. > > So I'm all for using the explicit calls to current-time instead of using > alternatve sources for the current time. You are aware that datefudge exists, aren't you? http://manpages.ubuntu.com/manpages/trusty/man1/datefudge.1.html My 2 cents, -- Marcin Borkowski http://mbork.pl