emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] tags filtering in weekly/daily agenda


From: Bernt Hansen
Subject: Re: [O] tags filtering in weekly/daily agenda
Date: Mon, 22 Aug 2011 07:39:59 -0400
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Eric Abrahamsen <address@hidden> writes:

> On Sun, Aug 21 2011, Carsten Dominik wrote:
>
>> On 21.8.2011, at 15:17, Bernt Hansen wrote:
>>
>>> Eric Abrahamsen <address@hidden> writes:
>>> 
>>>> Am I wrong, or is there no way to filter what is shown in the
>>>> weekly/daily agenda view? I'm creating custom agendas with multiple
>>>> blocks, and would like to apply the same tags/match filter to the daily
>>>> agenda as I do to the TODO blocks below it. Can that be done?
>>
>> This might be a problem with an older version of Org-mode, but we have no 
>> idea
>> what your version is, Eric.
>>
>> - Carsten
>
> Ah, sorry -- stupid oversight: Org-mode version 7.7
> (release_7.7.160.g3e33). Should be yesterday.
>
> I'm using plain elisp to create custom agenda views (the customize
> interface is hard to look at). Here's the simplest thing I started with:
>
> (setq org-agenda-custom-commands
>       '(("p" "Personal agenda plus mail"
>        ((agenda "-CATEGORY=\"pr\"")
>         (tags "TODO=\"EMAIL\"-CATEGORY=\"pr\"")))))
>
> The "tags" section filters correctly, but the agenda doesn't. This
> probably isn't the correct way to do it, but the examples in the
> manual don't show how. Bernt's pointer about dynamic filtering of an
> existing agenda view works, of course, but I'm trying to have it start
> out filtered.

You should be able to achieve this by setting the variable
org-agenda-filter.

-Bernt



reply via email to

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