From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: struggle with using variable org-agenda-*-filter* properly Date: Tue, 29 Apr 2014 13:51:40 +0200 Message-ID: <87tx9cxsj7.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf6Zh-00060p-Kn for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 07:51:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf6Zb-0002Qj-Uh for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 07:51:49 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:58890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf6Zb-0002QN-Of for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 07:51:43 -0400 Received: by mail-wi0-f176.google.com with SMTP id f8so1009593wiw.9 for ; Tue, 29 Apr 2014 04:51:42 -0700 (PDT) In-Reply-To: (Brady Trainor's message of "Mon, 28 Apr 2014 14:58:59 -0700") 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: Brady Trainor Cc: emacs-orgmode@gnu.org Hi Brady, Brady Trainor writes: > ;; (org-agenda-regexp-filter-preset '(":STYLE:.+habit")) > ;; (org-agenda-tag-filter-preset '("+STYLE=\"habit\"")) Filters are applied on the headlines, not on their contents, because they are applied *after* the agenda is generated. That's why the first filter above will not work. Also, "tag" in "org-agenda-tag-filter-preset" means "tag", not a tag-and/or-property-query. So it should be something like this (org-agenda-tag-filter-preset '("mytag")) to filter a headline containing the tag "mytag". Hope this clarifies things up, -- Bastien