From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: struggle with using variable org-agenda-*-filter* properly Date: Mon, 28 Apr 2014 14:58:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Weta6-0002U8-F1 for emacs-orgmode@gnu.org; Mon, 28 Apr 2014 17:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Weta1-0007tJ-6h for emacs-orgmode@gnu.org; Mon, 28 Apr 2014 17:59:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:53138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Weta0-0007tC-VN for emacs-orgmode@gnu.org; Mon, 28 Apr 2014 17:59:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WetZv-0003tA-Ck for emacs-orgmode@gnu.org; Mon, 28 Apr 2014 23:59:11 +0200 Received: from 216.243.14.87 ([216.243.14.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Apr 2014 23:59:11 +0200 Received: from algebrat by 216.243.14.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Apr 2014 23:59:11 +0200 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 I am often having difficulties with the various org-agenda filter settings, for creating org-agenda-custom-commands. There is not much documentation, especially, examples for those new to for instance regexp, and Emacs' regexp, and how these work with org's syntax. In the following agenda-custom-command, I tried to use regexp in regexp-filter and tag-filter, but could not succeed. I did successfully get the skip-function to work, but I was hoping to clarify if I should expect the other variables to work, now or in the future, and/or if you could help me understand how to use them properly. (org-add-agenda-custom-command '("h" "habits" agenda "" ((org-agenda-files '("/e/org/agendas-main.org")) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":STYLE:.+habit")) (org-agenda-span 'day) ;; (org-agenda-regexp-filter-preset '(":STYLE:.+habit")) ;; (org-agenda-tag-filter-preset '("+STYLE=\"habit\"")) ) )) I have tried various permutations of the syntax, but could not make the latter two variables work. Leads: - http://orgmode.org/manual/Matching-tags-and-properties.html - which links to, http://orgmode.org/manual/Special-agenda-views.html#x-agenda-skip-entry-regexp, perhaps the intended solution at this time - http://orgmode.org/worg/org-tutorials/advanced-searching.html - http://www.emacswiki.org/emacs/RegularExpression Thank you, Brady