* Agenda custom command problems
@ 2012-02-27 10:45 James Harkins
2012-02-29 9:22 ` James Harkins
0 siblings, 1 reply; 5+ messages in thread
From: James Harkins @ 2012-02-27 10:45 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Agenda custom command problems
2012-02-27 10:45 Agenda custom command problems James Harkins
@ 2012-02-29 9:22 ` James Harkins
2012-02-29 9:38 ` James Harkins
2012-04-03 7:09 ` Bastien
0 siblings, 2 replies; 5+ messages in thread
From: James Harkins @ 2012-02-29 9:22 UTC (permalink / raw)
To: emacs-orgmode
At Mon, 27 Feb 2012 18:45:05 +0800,
James Harkins wrote:
>
> Hi,
>
> Two questions about agenda custom commands.
Hi,
Any ideas on these?
Short versions of the questions:
1. Why does Emacs ignore 2 out of 3 agenda custom commands, which I defined through the customize interface and appear in correct syntax in my ~/.emacs?
2. Why does (org-agenda-sorting-strategy (quote (time-up))) have no effect in a tags-todo search?
James
Details, for context:
> 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.)
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Agenda custom command problems
2012-02-29 9:22 ` James Harkins
@ 2012-02-29 9:38 ` James Harkins
2012-04-03 7:09 ` Bastien
1 sibling, 0 replies; 5+ messages in thread
From: James Harkins @ 2012-02-29 9:38 UTC (permalink / raw)
To: emacs-orgmode
At Wed, 29 Feb 2012 17:22:34 +0800,
James Harkins wrote:
> 1. Why does Emacs ignore 2 out of 3 agenda custom commands, which I defined through the customize interface and appear in correct syntax in my ~/.emacs?
>
> 2. Why does (org-agenda-sorting-strategy (quote (time-up))) have no effect in a tags-todo search?
Question #1 has a stupid answer. I had forgotten to remove another setq for org-agenda-custom commands later in my .emacs -- so this one is solved now.
Question #2 is open. Is there any way at all to change the sorting of a to-do list?
> > 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))))
James
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Agenda custom command problems
2012-02-29 9:22 ` James Harkins
2012-02-29 9:38 ` James Harkins
@ 2012-04-03 7:09 ` Bastien
2012-04-03 7:27 ` James Harkins
1 sibling, 1 reply; 5+ messages in thread
From: Bastien @ 2012-04-03 7:09 UTC (permalink / raw)
To: James Harkins; +Cc: emacs-orgmode
Hi James,
James Harkins <jamshark70@gmail.com> writes:
> 1. Why does Emacs ignore 2 out of 3 agenda custom commands, which I defined
> through the customize interface and appear in correct syntax in my
> ~/.emacs?
Can you provide a minimal .emacs.el and an .org file that we can test to
understand what is really ignored?
> 2. Why does (org-agenda-sorting-strategy (quote (time-up))) have no
> effect in a tags-todo search?
Same here.
In general, it's really hard to digg into an issue without such
information, and time is short for everyone :/ Thanks for your
understanding,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Agenda custom command problems
2012-04-03 7:09 ` Bastien
@ 2012-04-03 7:27 ` James Harkins
0 siblings, 0 replies; 5+ messages in thread
From: James Harkins @ 2012-04-03 7:27 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
At Tue, 03 Apr 2012 09:09:33 +0200,
Bastien wrote:
>
> Hi James,
>
> James Harkins <jamshark70@gmail.com> writes:
>
> > 1. Why does Emacs ignore 2 out of 3 agenda custom commands, which I defined
> > through the customize interface and appear in correct syntax in my
> > ~/.emacs?
> > 2. Why does (org-agenda-sorting-strategy (quote (time-up))) have no
> > effect in a tags-todo search?
>
> Can you provide a minimal .emacs.el and an .org file that we can test to
> understand what is really ignored?
These issues were already solved, but thanks.
#1 - I had a setq in my emacs that was overriding the customize setting.
#2 - Misunderstanding: time-up is not date-and-time, it's only time of day.
James
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-03 7:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-27 10:45 Agenda custom command problems James Harkins
2012-02-29 9:22 ` James Harkins
2012-02-29 9:38 ` James Harkins
2012-04-03 7:09 ` Bastien
2012-04-03 7:27 ` James Harkins
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).