emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-agenda-custom-commands clarification on filters needed


From: Thomas Wallrafen
Subject: [O] org-agenda-custom-commands clarification on filters needed
Date: Sun, 28 Aug 2011 13:40:11 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi org'ers,

I am currently trying to figure out a way to build a composite view for
an agenda containing agenda and todos, which works well but when it
comes to setting filters...

In the first example (agenda and todo list below) the filter "+home" for
the agenda does not take effect. When reordering that the todo list is
on top and the agenda below, it works as expected. That is, both items
of the composite view are correctly filtered with tag "+home".

#+begin_src elisp
(setq org-agenda-custom-commands
          '(("h" "Agenda and home related todos" (
                  (agenda "" ((org-agenda-filter-preset '("+home")) 
(org-agenda-span 4)))
                  (tags-todo "+home")
                  ))))


(setq org-agenda-custom-commands
          '(("h" "Agenda and home related todos" (
                  (tags-todo "+home")
                  (agenda "" ((org-agenda-filter-preset '("+home")) 
(org-agenda-span 4)))
                  ))))

#+end_src


Having a discussion with Thumper_ on the irc channel he found out some
more oddities (copied and slightly modified by courtesy of Thumper_):

#+STARTUP:
* This one works
[2011-08-28 Sun 07:07]
#+begin_src elisp
(setq org-agenda-custom-commands
      '(("h" "Agenda and home related todos"
         ((agenda ""
                  ((org-agenda-filter-preset
                    '("+home"))
                   (org-agenda-span 4)))
          (tags-todo "+home"
                     ((org-agenda-filter-preset
                       '("+home")))))
         nil)))
#+end_src
* This also incorrectly filters the first agenda
[2011-08-28 Sun 07:07]
#+begin_src elisp
(setq org-agenda-custom-commands
      '(("h" "Agenda and home related todos"
         ((agenda ""
                   ((org-agenda-span 4)))
          (tags-todo "+home"
                     ((org-agenda-filter-preset
                       '("+home")))))
         nil)))
#+end_src


So, how would I set the filters properly given that I want the agenda
tob be first and a list of todo items below?

Any pointers to documentation or hints greatly appreciated :)

bye,

thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]