From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: match on any TODO state Date: Thu, 30 Jul 2015 08:33:49 -0400 Message-ID: <87y4hx964y.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKn2C-0006yk-HO for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKn29-0008Mq-1a for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:34:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:44463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKn28-0008MX-Rn for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:34:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZKn24-0008TT-Qp for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 14:33:57 +0200 Received: from pool-108-20-41-232.bstnma.fios.verizon.net ([108.20.41.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jul 2015 14:33:56 +0200 Received: from ndokos by pool-108-20-41-232.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jul 2015 14:33:56 +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 Xebar Saram writes: > Hi  > I created this function which works well. > >  (defun z/org-sparse-todo () >     (interactive) >     (org-match-sparse-tree t "+TODO=\"TODO\"")) > > my question is how can i match on ANY todo state and not just literaly TODO > ie if i have this in my org file  > > #+TODO: TODO(t) EXP(e) | SUBMITTED(s) K_TRACK(k) PAUSED(p) DONE(d)  > > how can i match it by all the todos like TODO and EXP > Untested, but it looks to me as if (org-match-sparse-tree t) should work. -- Nick