From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Engster Subject: Re: Sorting TODOs with time-up Date: Mon, 30 Mar 2009 16:46:57 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoIln-0004CD-3Z for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 10:47:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoIli-0004AV-7h for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 10:47:22 -0400 Received: from [199.232.76.173] (port=36613 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoIlh-0004AO-US for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 10:47:17 -0400 Received: from main.gmane.org ([80.91.229.2]:33852 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoIlg-000334-21 for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 10:47:17 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LoIla-0005Ws-QY for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 14:47:10 +0000 Received: from 134.76.4.218 ([134.76.4.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Mar 2009 14:47:10 +0000 Received: from deng by 134.76.4.218 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Mar 2009 14:47:10 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matthew Lundin writes: > David Engster writes: >> I guess this should be simple but somehow it's not working for me. I >> want to generate a todo list which is sorted according to the scheduled >> date. Consider the following test.org file: [...] >> This minimal setup >> >> (setq org-agenda-files '("~/orgtest/test.org")) >> (setq org-agenda-sorting-strategy >> '((agenda time-up priority-down category-keep) >> (todo time-up priority-down category-keep) >> (tags priority-down category-keep) >> (search category-keep))) >> >> should sort TODOs according to time, right? But when I do > As far as I understand it, time-up sorts only by time of day in the > agenda view. I.e., it will place items that have been scheduled for a > particular hour at the top of the agenda. > > Here's some info from the docstring: > > ,---- > | time-up Put entries with time-of-day indications first, early first > | time-down Put entries with time-of-day indications first, late first > | > | Pull out all entries having a specified time of day and sort them, > | in order to make a time schedule for the current day the first thing in the > | agenda listing for the day. > `---- Thanks for the clarification. This is a bit confusing, since sorting by priority works in the todo list, but sorting with date does not. Also, since I call the function 'org-agenda', it is a bit unexpected that when I press 't' afterwards I don't really get an agenda but a TODO list, which seems to behave differently in some aspects from the normal agenda view I get when pressing 'a'. > There is the possibility of using a user-defined function. Perhaps you > could use that to sort by date. > > ,---- > | user-defined-up Sort according to `org-agenda-cmp-user-defined', high last. > | user-defined-down Sort according to `org-agenda-cmp-user-defined', high first. > `---- Unfortunately, this does not help, since there is no time information in the entries 'a' and 'b' to sort by; it seems the timestamps are simply not extracted when building TODO lists. Thanks for your help, -David