From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: skip entry with inherited tags Date: Tue, 18 May 2010 13:25:48 -0400 Message-ID: <87mxvxdsv7.fsf@fastmail.fm> References: <20100518074232.GA10524@mteege.de> <4BF2778D.9070702@os.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=43460 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEQYK-00023P-8T for emacs-orgmode@gnu.org; Tue, 18 May 2010 13:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEQYD-0001RX-WB for emacs-orgmode@gnu.org; Tue, 18 May 2010 13:25:58 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:59302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEQYC-0001Qh-4V for emacs-orgmode@gnu.org; Tue, 18 May 2010 13:25:53 -0400 In-Reply-To: <4BF2778D.9070702@os.inf.tu-dresden.de> (Martin Pohlack's message of "Tue, 18 May 2010 13:18:37 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Pohlack Cc: emacs-orgmode@gnu.org Martin Pohlack writes: > Hi, > > On 18.05.2010 09:42, Matthias Teege wrote: >> Moin, >> >> I'm using a simple skip-function to exclude todos from a list. >> >> (defun my-skip-someday-and-scheduled () >> "" >> (org-agenda-skip-entry-if 'scheduled 'regexp ":SOMEDAY:")) >> >> That works when the tag was assigned to an entry but not when it was >> inherited from a parent. How do I get all tags for an entry? > > I have been using the same approach with the same limitations. I > stumbled upon the "tags filter preset", which supposedly should filter > out headlines with a specific tag set. > > I tried to set it to "-maybe" but it did not seem to have an effect > with the default "Agenda" type. Is this supposed to work? Did you set the variable as a list? --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("x" "No maybe" todo "" ((org-agenda-filter-preset '("-maybe")))))) --8<---------------cut here---------------end--------------->8--- BTW, I believe one solution to the original question is: --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("x" "No scheduled or someday" todo "" ((org-agenda-todo-ignore-scheduled t) (org-agenda-filter-preset '("-SOMEDAY")))))) --8<---------------cut here---------------end--------------->8--- Best, Matt