From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Agenda custom command problems Date: Mon, 27 Feb 2012 18:45:05 +0800 Message-ID: <87d390o8r2.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1y5M-0001wx-GL for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 05:45:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1y5H-0001X0-IA for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 05:45:40 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:58172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1y5H-0001Wq-B7 for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 05:45:35 -0500 Received: by dadv6 with SMTP id v6so5141210dad.0 for ; Mon, 27 Feb 2012 02:45:34 -0800 (PST) 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 Hi, Two questions about agenda custom commands. 1. I've defined a few custom agenda commands, but the only one that actually appears in the agenda dispatcher is 'z'. If I open Emacs and immediately C-h v org-agenda-custom-commands, it says: Its value is (("z" tags-todo "-ExamFdbk")) But... The following block is one of the arguments to custom-set-variables in my ~/.emacs. I used the customize interface to create the custom commands. '(org-agenda-custom-commands (quote (("z" tags-todo "-ExamFdbk" nil) ("1" "Course-related TODOs" tags-todo "+AudioClass|Lesson|MyConcert|Workshop11&-Wk11plugs-Wk11Docs" nil) ("2" "Spring semester TODOs" tags-todo "-Wk11plugs-Wk11Docs" ((org-agenda-files (quote ("~/Documents/xinghai/11-12-spring/semester-spr.org"))) (org-agenda-sorting-strategy (quote (time-up)))))))) If I manually execute the entire custom-set-variables block, after that, C-h v shows the complete value. Quite funny... it's all there, but Emacs doesn't process it during startup...? I've never seen that before with any other customize variable. All the other customize variables are set correctly. Any ideas how to fix? 2. I would like command "2" to show a subset of the TODOs (based on tags) in one given file, sorted in order of time stamp. Everything is working except the sorting: (org-agenda-sorting-strategy '(time-up)) is so far not having any effect. The TODOs appear in the order of appearance in the file. I need time stamp order to see at a glance what I need to do today vs tomorrow, etc. ("2" "Spring semester TODOs" tags-todo "-Wk11plugs-Wk11Docs" ((org-agenda-files '("~/Documents/xinghai/11-12-spring/semester-spr.org")) (org-agenda-sorting-strategy '(time-up)))) How to make the sorting strategy apply to a tags-todo search? (Sorry if these are boring questions... I'm not as deep into org as people who are contributing emacs-lisp on list :) These are just things that seem like they should be working, according to the documentation, but they aren't.) hjh -- James Harkins /// dewdrop world jamshark70@dewdrop-world.net http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks