emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Odd behavior in custom agenda (was "done" keyword red)
Date: Wed, 10 Aug 2011 16:21:51 -0500	[thread overview]
Message-ID: <CA+M2ft-3QS2LV+J49K-wxiSoDygaknm6WGyCJn-xt-e6CCLr7w@mail.gmail.com> (raw)

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
>

             reply	other threads:[~2011-08-10 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 21:21 John Hendy [this message]
2011-08-24 18:35 ` Odd behavior in custom agenda (was "done" keyword red) Bastien
2011-08-24 19:15   ` John Hendy

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft-3QS2LV+J49K-wxiSoDygaknm6WGyCJn-xt-e6CCLr7w@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.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 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).