From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: skip entry with inherited tags Date: Mon, 16 Aug 2010 15:10:45 +0200 Message-ID: <4C5FE6A9-23ED-4282-9F12-17D41F4CBB1F@gmail.com> References: <20100518074232.GA10524@mteege.de> <4BF2778D.9070702@os.inf.tu-dresden.de> <87mxvxdsv7.fsf@fastmail.fm> <4C082225.6020007@os.inf.tu-dresden.de> <4C08ED73.1000104@os.inf.tu-dresden.de> <4C343FB2.3080204@os.inf.tu-dresden.de> <4C3CA546.3060000@os.inf.tu-dresden.de> <3BFF4D35-CD16-4A41-B0A4-383538586592@gmail.com> <4C3CCDE4.9000600@os.inf.tu-dresden.de> <6694F386-1367-43D6-9587-7F26ECBC9C57@gmail.com> <4C59DDBF.8080105@os.inf.tu-dresden.de> <4C693580.6030604@os.inf.tu-dresden.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkzSr-0005JN-QT for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 09:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkzSj-0008U2-G2 for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 09:10:55 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:50644) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkzSj-0008Tn-7C for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 09:10:49 -0400 Received: by eyg7 with SMTP id 7so1422919eyg.0 for ; Mon, 16 Aug 2010 06:10:48 -0700 (PDT) In-Reply-To: <4C693580.6030604@os.inf.tu-dresden.de> 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: Matt Lundin , emacs-orgmode@gnu.org On Aug 16, 2010, at 2:56 PM, Martin Pohlack wrote: > Hi Carsten, > > [...] > >>>> The internal logic of the filter and the preset filter is such that >>>> it applies to the entire view, and you should not set in the local >>>> options for a command that is part of a block agenda view. >>> >>> Well, it is already partly there in that local filters are stored in >>> text properties for each line. Maybe we can extend this a bit to >>> remove >>> this limitation? >> >> I think this will be tidious. > > Yes, I saw this on my first attempts to look at the code :-). I > have not yet given up on this though ... > >> For block agendas, I guess a skip >> condition will be better than filtering. > > This does not help with inherited tags, AFAIK. For example, if I > mark a whole tree of things with :maybe:, the inheriting items in > the tree cannot easily be skipped. Easily yes, cheaply no. You can call `org-get-tags-at' to get either only local tags or both local and inherited tags. Also, when an item is listed in the agenda, it has a text property mentioning all tags. You can also write your own hook function to run through the agenda and remove certain lines (just delete them) based on the text properties each item has. - Carsten