From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Suckling Subject: Custom agenda views: todo-state-down Date: Mon, 16 Feb 2009 00:30:09 +0000 Message-ID: <13D73EE1-CCC4-4CB7-9ABB-3A8D6661C27F@gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYrNF-0006Rb-6Q for emacs-orgmode@gnu.org; Sun, 15 Feb 2009 19:30:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYrNE-0006R7-NM for emacs-orgmode@gnu.org; Sun, 15 Feb 2009 19:30:12 -0500 Received: from [199.232.76.173] (port=52468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYrNE-0006Qs-Gc for emacs-orgmode@gnu.org; Sun, 15 Feb 2009 19:30:12 -0500 Received: from ey-out-1920.google.com ([74.125.78.148]:37353) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LYrNE-0005aj-47 for emacs-orgmode@gnu.org; Sun, 15 Feb 2009 19:30:12 -0500 Received: by ey-out-1920.google.com with SMTP id 4so174709eyg.24 for ; Sun, 15 Feb 2009 16:30:10 -0800 (PST) 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: org-mode mailing list I'm having a little difficulty with org-agenda-sorting-strategy: If I create a tags or tags-todo view, then todo-state-down (or todo- state-up) appears to be ignored. For example: ----- ("P" "Priority #A tasks " tags-todo "+PRIORITY=\"A\"" ((org-agenda-skip-timestamp-if-done t) (org-agenda-sorting-strategy '(todo-state-down effort-up category- keep)) (org-agenda-overriding-header "Priority #A tasks: "))) ----- fails to sort by todo-state. On the other hand: ----- ("Qt" "TODO entries - @mac " alltodo "" ((org-agenda-files (list "~/Sites/org/mac_A.org")) (org-agenda-sorting-strategy '(priority-down todo-state-down category-keep)) (org-agenda-overriding-header "TODO entries - @mac: "))) ----- sorts as expected. Interestingly, if the second example is included as part of a block agenda, then it also fails. Any suggestions? Best wishes, Christopher