From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [BUG] `org-agenda-sorting-strategy' does not work in `tags-todo'
Date: Mon, 21 Oct 2013 23:07:13 +0200 [thread overview]
Message-ID: <86bo2ie3jy.fsf@somewhere.org> (raw)
In-Reply-To: 86hadqurl2.fsf@somewhere.org
Hello,
"Sebastien Vauban" wrote:
> The following agenda view is supposed to display the tasks by ascending
> _DEADLINE timestamp_.
>
> #+begin_src emacs-lisp
> (add-to-list 'org-agenda-custom-commands
> '("B" "Today"
> tags-todo "DEADLINE<=\"<today>\""
> ((org-agenda-overriding-header "Today")
> (org-agenda-sorting-strategy '(deadline-up)))) t)
> #+end_src
>
> However, as you can see with the following ECM:
>
> #+begin_src org
> * Health
> :PROPERTIES:
> :CATEGORY: Health
> :END:
>
> ** TODO 3Do jogging
> DEADLINE: <2013-09-09 Mon>
>
> ** TODO 2Check weekend hours at the gym
> DEADLINE: <2013-09-08 Sun>
>
> * Personal
> :PROPERTIES:
> :CATEGORY: Personal
> :END:
>
> ** TODO 4Mail package to Susan
> DEADLINE: <2013-09-12 Thu>
>
> * Shopping
> :PROPERTIES:
> :CATEGORY: Shopping
> :END:
>
> ** TODO 1Buy dog food
> DEADLINE: <2013-09-07 Sat>
> #+end_src
>
> it sorts the list by _category_, instead!
>
> Today (4)
> Health: TODO 3Do jogging
> Health: TODO 2Check weekend hours at the gym
> Personal: TODO 4Mail package to Susan
> Shopping: TODO 1Buy dog food
>
> The same sorting criteria, applied on an `agenda' view, does work.
>
> #+begin_src emacs-lisp
> (add-to-list 'org-agenda-custom-commands
> '("G" "Agenda deadline-up"
> agenda ""
> ((org-agenda-span 'day)
> (org-agenda-time-grid nil)
> (org-agenda-sorting-strategy '(deadline-up)))) t)
> #+end_src
> Calendar for today
> 2013-09-12 Thu ________________________________________________
> 5 d ago TODO 1Buy dog food
> 4 d ago TODO 2Check weekend hours at the gym
> 3 d ago TODO 3Do jogging
> Deadline TODO 4Mail package to Susan
Anybody having a hint on this?
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2013-10-21 21:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-12 12:55 [BUG] `org-agenda-sorting-strategy' does not work in `tags-todo' Sebastien Vauban
2013-10-21 21:07 ` Sebastien Vauban [this message]
2013-11-06 13:30 ` Bastien
2014-02-13 9:58 ` Sebastien Vauban
2014-03-21 7:55 ` Bastien
[not found] ` <87mwgkf0jq.fsf-E3UqQZAQFPqWIDz0JBNUog@public.gmane.org>
2014-03-31 14:17 ` Sebastien Vauban
2015-01-05 12:41 ` Nick
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86bo2ie3jy.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.