emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Odd behavior in custom agenda (was "done" keyword red)
@ 2011-08-10 21:21 John Hendy
  2011-08-24 18:35 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2011-08-10 21:21 UTC (permalink / raw)
  To: emacs-orgmode

To add some more information, below is a sample file and here is a
screenshot of the custom agenda generated from it:
http://i.imgur.com/9eou6.png

#+begin_src org
#+todo: todo(t) next(n!) proj(p) | waiting(w@/@) done(d/@) cancelled(c@/@)

* done no schedule/no deadline
  CLOSED: [2011-08-10 Wed 16:12]
* done scheduled
  SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16
* done deadline
  DEADLINE: <2011-08-11 Thu> SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16:12]
* done deadline + scheduled
  DEADLINE: <2011-08-11 Thu> SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16:12]

* DONE no schedule/no deadline
  CLOSED: [2011-08-10 Wed 16:12]
* DONE scheduled
  SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16]
* DONE deadline
  DEADLINE: <2011-08-11 Thu> SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16]
* DONE deadline + scheduled
  DEADLINE: <2011-08-11 Thu> SCHEDULED: <2011-08-10 Wed>
  CLOSED: [2011-08-10 Wed 16]
#+end_src

Normally I just have a #+setupfile line, but I copied the custom todo
keyword information from it and pasted it into the file above instead.
As shown below, here is my custom agenda:

-----
> (setq org-agenda-custom-commands
>    '(("w" "Agenda"
>        ((agenda "" ((org-agenda-ndays 7)))
>
>         (todo "next"
>            ((org-agenda-overriding-header "Next Actions")))
>
>         (todo "proj"
>            ((org-agenda-overriding-header "Projects"))
>             (org-agenda-sorting-strategy
>                 '(todo-state-down category-keep)))))
-----

It's as if the face changes based both on whether it's scheduled or
deadlined and what day it's showing up on. Any input on this, or is it
normal? I guess I'd expect the todo keyword "done" to be green no
matter what, but perhaps the headline is shown as red because the
deadline is soon/tomorrow?


Thanks,
John



On Wed, Aug 10, 2011 at 11:44 AM, John Hendy <jw.hendy@gmail.com> wrote:
> Is there a way to make the green font face apply to custom agenda
> views? Here is an example:
>
> ----------
>
> (setq org-agenda-custom-commands
>    '(("w" "Agenda"
>        ((agenda "" ((org-agenda-ndays 7)))
>
>         (todo "next"
>            ((org-agenda-overriding-header "Next Actions")))
>
>         (todo "proj"
>            ((org-agenda-overriding-header "Projects"))
>             (org-agenda-sorting-strategy
>                 '(todo-state-down category-keep)))))
> ----------
>
> My results:
> - C-a t, then 5 r (to show done items) produces all green "done" names
> - C-a a produces "done" items in green
> - C-a w (my custom agenda above) produces done items in the schedule area as red
>
> What am I goofing up?
>
> Perhaps this has been discussed before... I only found one previous
> mailing list item which was from quite some time ago and was reported
> as being fixed in v6.07
>
> [1] http://lists.gnu.org/archive/html/emacs-orgmode/2008-09/msg00276.html
>
>
> Thanks,
> John
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-24 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-10 21:21 Odd behavior in custom agenda (was "done" keyword red) John Hendy
2011-08-24 18:35 ` Bastien
2011-08-24 19:15   ` John Hendy

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).