From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: tags filtering in weekly/daily agenda Date: Mon, 22 Aug 2011 07:39:59 -0400 Message-ID: <87y5yl3ca8.fsf@norang.ca> References: <87ippr9dts.fsf@ericabrahamsen.net> <87bovi52f1.fsf@norang.ca> <654A6F59-193F-4E67-8362-E3C3657EFA7D@gmail.com> <8762lq9pxe.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvSrL-0002vq-2K for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 07:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvSrK-0007Q0-02 for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 07:40:03 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:63538 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvSrJ-0007Pv-UG for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 07:40:01 -0400 In-Reply-To: <8762lq9pxe.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 22 Aug 2011 09:48:45 +0800") 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Eric Abrahamsen writes: > On Sun, Aug 21 2011, Carsten Dominik wrote: > >> On 21.8.2011, at 15:17, Bernt Hansen wrote: >> >>> Eric Abrahamsen 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