From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hoffman Subject: Re: org-sort-agenda-notime-is-late is mishandled in org-cmp-ts Date: Thu, 02 Jan 2014 11:58:32 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vylcy-0007MP-Ot for emacs-orgmode@gnu.org; Thu, 02 Jan 2014 12:00:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vylcq-0006HC-KA for emacs-orgmode@gnu.org; Thu, 02 Jan 2014 12:00:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:38052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vylcq-0006EH-EA for emacs-orgmode@gnu.org; Thu, 02 Jan 2014 12:00:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vylco-0001Ej-QD for emacs-orgmode@gnu.org; Thu, 02 Jan 2014 18:00:02 +0100 Received: from gnat.uhnres.utoronto.ca ([192.75.165.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Jan 2014 18:00:02 +0100 Received: from gmane3-hoffman by gnat.uhnres.utoronto.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Jan 2014 18:00:02 +0100 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 12/01/2013 12:12 PM, Michael Crouch wrote: > Bug report for 8.2.3c: > > When org-agenda-sorting-strategy is set to deadline-up (or similar > values), the Global Todo list always places non-timestamped entries at > the beginning, even when org-sort-agenda-notime-is-late is true. This > is inconsistent with the behavior when org-agenda-sorting-strategy is > time-up. > > I believe the problem is that the org-cmp-ts function copied a line from > the older org-cmp-time function: > (def (if org-sort-agenda-notime-is-late 9901 -1)) > > 9901 is later than all times of day, but not later than all date/time > stamps. I get this too on org 8.2.4. Replacing 9901 with most-positive-fixnum fixes the problem. Michael Hoffman