From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: Filtering agenda by tags. Date: Sat, 30 Apr 2011 11:48:23 -0400 Message-ID: <4DBC2F47.30609@pobox.com> References: <4DAEB2CE.2040708@gmail.com> <87bp01axv3.fsf@fastmail.fm> <4DAEDA14.8020409@gmail.com> <877hapawyl.fsf@fastmail.fm> <4DAEDCAA.3060005@gmail.com> <87vcy99g1t.fsf@fastmail.fm> Reply-To: mike.mclean@pobox.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGCPI-0007FI-5i for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 11:48:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGCPH-0002nN-4g for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 11:48:32 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:61330 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGCPH-0002n5-2U for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 11:48:31 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 304F720B2 for ; Sat, 30 Apr 2011 11:48:24 -0400 (EDT) Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 2D02A20B0 for ; Sat, 30 Apr 2011 11:48:24 -0400 (EDT) Received: from MACXMCLEANM.local (unknown [12.234.128.131]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C6D6120AF for ; Sat, 30 Apr 2011 11:48:23 -0400 (EDT) In-Reply-To: <87vcy99g1t.fsf@fastmail.fm> 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 4/20/11 10:02 AM, Matt Lundin wrote: > I believe the only option is to write a skip function that uses > org-entry-get to get all the tags at point. I have this in my org-setup and use it to generate agenda views that skip certain tags, whether that tag is local or inherited. #+begin_src emacs-lisp (defun mlm-skip-if-bill-pay() "Skip entries that are Tagged Bill_Pay taking into account inheritance" (let* ((entry-tags (org-get-tags-at (point)))) (if (member "Bill_Pay" entry-tags) (progn (outline-next-heading) (point)) nil ) ) ) #+end_src And then the the custom agenda definiitions where I want to exclude this, I have: #+begin_src emacs-lisp (org-agenda-skip-function 'mlm-skip-if-bill-pay) #+end_src