From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: Filter weekly/daily agenda by tag Date: Sun, 28 Oct 2012 16:40:36 +0100 Message-ID: References: <508D2BAE.8070102@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUyc-0008C2-48 for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:40:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSUyb-0008V9-8S for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:40:38 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:44916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUyb-0008V4-4Q for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:40:37 -0400 Received: by mail-vc0-f169.google.com with SMTP id fl17so5097388vcb.0 for ; Sun, 28 Oct 2012 08:40:36 -0700 (PDT) In-Reply-To: <508D2BAE.8070102@gmx.de> 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: Simon Thum Cc: emacs-orgmode@gnu.org 2012/10/28 Simon Thum : > On 10/28/2012 12:58 PM, Alexander Baier wrote: >> >> To explain what i want to achieve regarding this example: I want a >> weekly agenda view only displaying Event1, Event2 and Event4 but not >> Event3 as it should be excluded by its tag. >> >> Any help is appreciated. > > FWIW, my agenda is constructed like this: > > ("w" "work week agenda" agenda "" > ((org-agenda-span 'week) > (org-agenda-start-on-weekday 1) ;; work - begin on monday > (org-agenda-tag-filter-preset '("+@work")) ;; no OR (phd | @work) > possible here! > (org-agenda-hide-tags-regexp "@work") > (org-agenda-compact-blocks t) > )) Do you know if there is another filter/setting that allows for more complex filtering? (like the OR expression you pointed out) > > Using the tag-filter-preset allows to change the tags inside the agenda view > because it filters the view, not the construction of the agenda. > > Excluding might work like this: > > (org-agenda-tag-filter-preset '("+like" "-dislike")) This works like i wanted, thanks! Regards Alexander