Hello!

I've tried to customize the output in agenda-views using
org-agenda-prefix-format but I didn't get it to work properly.

I created this agenda view to illustrate my problem:

(setq org-agenda-custom-commands
      '(("w" "Deadlines"
         ;; inbox
         ((tags-todo "+DEADLINE<=\"<today>\""
                     ((org-agenda-prefix-format " %-12c%?-12t% s")
                      (org-agenda-tags-todo-honor-ignore-options t)
                      (org-agenda-todo-ignore-deadlines nil)
                      ))
          (tags-todo "+DEADLINE<=\"<today>\""
                     ((org-agenda-tags-todo-honor-ignore-options t)
                      (org-agenda-todo-ignore-deadlines nil)
                      ))))))

The only thing that differs is (org-agenda-prefix-format "
%-12c%?-12t% s") which
is present in the first of the two. The output when showing this agenda is:

Headlines with TAGS match: +DEADLINE<="<today>"
 Recurring   TODO     Sommarlöpning

=================================================================================
Headlines with TAGS match: +DEADLINE<="<today>"
  Recurring:  TODO     Sommarlöpning

There are some differences corresponding to the agenda-prefix-format
(indentation and lack of ":") but all the formatting options have not been
applied. I can not see the deadline-information I should get from "% s".
(From org-agenda.org: "%s   Scheduling/Deadline information, a short
string")

The following is the entry in my agenda-file:

** TODO Sommarlöpning
DEADLINE: <2011-08-14 Sun 16:00 .+2d>
:LOGBOOK:
- Refiled on [2011-08-15 Mon 15:45]
- State "CANCELED"   from "TODO"       [2011-08-13 Sat 19:05]
- State "DONE"       from "TODO"       [2011-08-10 Wed 19:42]
- State "TODO"       from ""       [2011-08-10 Wed 09:53]
:END:
:PROPERTIES:
:LAST_REPEAT: [2011-08-13 Sat 19:05]
:END:

Any guesses on what is wrong? Can anyone reproduce my problem or is it my
settings?

Regards Gustav

Reply via email to