From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Re: Sparse tree using regexp Date: Tue, 7 Dec 2010 14:04:13 +0100 Message-ID: References: <87zkshyddr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=43476 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPxLu-0006GW-FP for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 08:15:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPxDe-0002QK-Bm for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 08:06:58 -0500 Received: from mail-gw0-f48.google.com ([74.125.83.48]:39441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPxDe-0002QD-71 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 08:04:34 -0500 Received: by gwaa20 with SMTP id a20so4533613gwa.35 for ; Tue, 07 Dec 2010 05:04:33 -0800 (PST) In-Reply-To: <87zkshyddr.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Marco (m) Wahl" Cc: Juri Artamonov , emacs-orgmode@gnu.org On Tue, Dec 7, 2010 at 1:29 PM, Marco (m) Wahl wrote: > Juri Artamonov writes: > >> Hello, >> >> I have aquamacs and I have org file. I would like to leave lines that >> which contains only words TODO or INPROGRESS. >> >> I do Ctrl-C + / + / and then enter regular expression. If I enter TODO >> or just INPROGRESS then it works but when I try to enter >> TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing >> one of these words then no records are shown. >> >> Could you please advice how to use regexp here for orgmode? > > what about '\(TODO\)\|\(INPROGRESS\)'? > But shouldn't it be possible to get the sparse tree with the simpler "TODO\|INPROGRESS" regex anyway? I tried it and it worked as expected (with GNU Emacs on Linux). The OP could also try using the Todo kwd option, `C-c / T'. When prompted, a simple expression like "TODO|INPROGRESS" should work. (note the absence of backslash). Maybe some variable setting is interfering with the matching, or maybe its an Aquamacs bug. Just a few thoughts. -- Suvayu Open source is the future. It sets us free.