From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= Subject: Problem: Customizing agenda-views with org-agenda-prefix-format Date: Tue, 16 Aug 2011 13:15:58 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba6134b812fb7b04aa9d817a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtHcn-00059e-MR for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 07:16:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtHcm-00010I-FT for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 07:16:01 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:64035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtHcm-000105-7n for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 07:16:00 -0400 Received: by iyn15 with SMTP id 15so7225946iyn.6 for ; Tue, 16 Aug 2011 04:15:59 -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@gnu.org --90e6ba6134b812fb7b04aa9d817a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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<=3D\"\"" ((org-agenda-prefix-format " %-12c%?-12t% s") (org-agenda-tags-todo-honor-ignore-options t) (org-agenda-todo-ignore-deadlines nil) )) (tags-todo "+DEADLINE<=3D\"\"" ((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<=3D"" Recurring TODO Sommarl=F6pning =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Headlines with TAGS match: +DEADLINE<=3D"" Recurring: TODO Sommarl=F6pning 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=F6pning 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 --90e6ba6134b812fb7b04aa9d817a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello!

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

I created this agenda view to illustrate my pr= oblem:

(setq org-agenda-custom-commands
=A0 =A0 =A0 '(("w"= ; "Deadlines"
=A0 =A0 =A0 = =A0 =A0;; inbox
=A0 =A0 =A0 =A0 =A0((tags-todo "+DEADLINE<=3D\"<to= day>\""
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0((org-agenda-prefix-format " %-12c%?-12= t% s")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-agenda-tags-todo-hono= r-ignore-options t)
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-agenda-todo-ignore-deadlines nil)
=A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ))
=A0 =A0 =A0 =A0 =A0 (tags-todo "+DEADLINE<=3D\"<today>\&= quot;"
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0((org-agenda-tags-todo-hono= r-ignore-options t)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-agenda-todo-ignore-deadlin= es nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ))))))

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

Headlines= with TAGS match: +DEADLINE<=3D"<today>"
=A0Re= curring =A0 TODO =A0 =A0 Sommarl=F6pning

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Headlines with TAGS match= : +DEADLINE<=3D"<today>"
=A0 Recurring: =A0TOD= O =A0 =A0 Sommarl=F6pning

There are some differences corresponding to the agen= da-prefix-format (indentation and lack of ":") but all the=A0form= atting=A0options have not been applied. I can not see the deadline-informat= ion I should get from "% s". (From org-agenda.org: "%s =A0 Scheduling/Deadline information, a sho= rt string")

The following is the entry in my agenda-file:

=
** TODO Sommarl=F6pning
DEADLINE: &= lt;2011-08-14 Sun 16:00 .+2d>
:LOGBOOK:
- Refiled on [2011-08-15 Mon 15:45]<= /div>
- State "CANCELED" =A0 from "TODO" =A0 =A0 =A0 [20= 11-08-13 Sat 19:05]
- State "DONE" =A0 =A0 =A0 = from "TODO" =A0 =A0 =A0 [2011-08-10 Wed 19:42]
- State "TODO" =A0 =A0 =A0 from "" =A0 =A0 =A0 [20= 11-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
--90e6ba6134b812fb7b04aa9d817a--