From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: match on any TODO state Date: Thu, 30 Jul 2015 15:17:42 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86e6e6ad5bae051c16b037 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKmmO-0001IF-LC for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:17:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKmmN-0008QV-Ns for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:17:44 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:34565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKmmN-0008QR-Ga for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 08:17:43 -0400 Received: by pacan13 with SMTP id an13so23256915pac.1 for ; Thu, 30 Jul 2015 05:17:42 -0700 (PDT) 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: org mode --047d7b86e6e6ad5bae051c16b037 Content-Type: text/plain; charset=UTF-8 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 Best Z --047d7b86e6e6ad5bae051c16b037 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi=C2=A0
I created this function which works well.

=C2=A0(defun z/org-sparse-todo ()
=C2= =A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 (org-match-sparse-tree t &= quot;+TODO=3D\"TODO\""))

my q= uestion is how can i match on ANY todo state and not just literaly TODO
ie if i have this in my org file=C2=A0

#+TODO: TODO(t) EXP(e) | SUBMITTED(s) K_TRACK(k) PAUSED(p) DONE(d)=C2=A0

how can i match it by all the todos like TODO= and EXP

Best

Z

--047d7b86e6e6ad5bae051c16b037--