From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Odd behavior in custom agenda (was "done" keyword red) Date: Wed, 10 Aug 2011 16:21:51 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrGDu-0004Mu-Fz for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 17:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrGDp-0001GI-Sr for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 17:21:58 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:40552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrGDp-0001GC-Kc for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 17:21:53 -0400 Received: by bkbzt4 with SMTP id zt4so628445bkb.0 for ; Wed, 10 Aug 2011 14:21:52 -0700 (PDT) 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 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 > =C2=A0 =C2=A0'(("w" "Agenda" > =C2=A0 =C2=A0 =C2=A0 =C2=A0((agenda "" ((org-agenda-ndays 7))) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "next" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-overriding-header "= Next Actions"))) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "proj" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-overriding-header "= Projects")) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-sorting-strategy > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(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 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 > =C2=A0 =C2=A0'(("w" "Agenda" > =C2=A0 =C2=A0 =C2=A0 =C2=A0((agenda "" ((org-agenda-ndays 7))) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "next" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-overriding-header "= Next Actions"))) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "proj" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-overriding-header "= Projects")) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-sorting-strategy > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(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 >