emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: emacs-orgmode@gnu.org
Subject: Re: Sorting TODOs with time-up
Date: Mon, 30 Mar 2009 16:46:57 +0200	[thread overview]
Message-ID: <m2tz5bcbku.fsf@arcor.de> (raw)
In-Reply-To: m28wmngmbj.fsf@fastmail.fm

Matthew Lundin <mdl@imapmail.org> writes:
> David Engster <deng@randomsample.de> 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

  reply	other threads:[~2009-03-30 14:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 12:57 Sorting TODOs with time-up David Engster
2009-03-30 13:41 ` Matthew Lundin
2009-03-30 14:46   ` David Engster [this message]
2009-03-30 17:59     ` Carsten Dominik
2009-03-30 21:03       ` David Engster
2009-03-30 21:15         ` Carsten Dominik
2009-03-31 11:53           ` David Engster
2009-03-31 14:44             ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tz5bcbku.fsf@arcor.de \
    --to=deng@randomsample.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).