From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: tags filtering in weekly/daily agenda Date: Mon, 22 Aug 2011 09:48:45 +0800 Message-ID: <8762lq9pxe.fsf@ericabrahamsen.net> References: <87ippr9dts.fsf@ericabrahamsen.net> <87bovi52f1.fsf@norang.ca> <654A6F59-193F-4E67-8362-E3C3657EFA7D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvJdR-0000Ju-BG for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 21:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvJdQ-0003TT-6T for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 21:49:05 -0400 Received: from lo.gmane.org ([80.91.229.12]:44417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvJdQ-0003TP-1M for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 21:49:04 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QvJdN-0004EK-MU for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 03:49:01 +0200 Received: from 125.33.1.57 ([125.33.1.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Aug 2011 03:49:01 +0200 Received: from eric by 125.33.1.57 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Aug 2011 03:49:01 +0200 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 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. Thanks! Eric