emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem: Customizing agenda-views with org-agenda-prefix-format
@ 2011-08-16 11:15 Gustav Wikström
  0 siblings, 0 replies; only message in thread
From: Gustav Wikström @ 2011-08-16 11:15 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 5439 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-16 11:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 11:15 Problem: Customizing agenda-views with org-agenda-prefix-format Gustav Wikström

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