From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Sparse tree using regexp Date: Tue, 07 Dec 2010 10:36:08 -0500 Message-ID: <87k4jld28n.fsf@fastmail.fm> References: <87zkshyddr.fsf@gmail.com> <87ei9ty8xe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPzal-0006lK-5L for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 10:36:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPzaj-0004m7-9A for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 10:36:34 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:60563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPzaj-0004hg-78 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 10:36:33 -0500 In-Reply-To: <87ei9ty8xe.fsf@gmail.com> (Marco Wahl's message of "Tue, 07 Dec 2010 15:06:05 +0100") 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 marcowahl@gmail.com (Marco (m) Wahl) writes: > hi Juri, > >> > 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\)'? >> this way it's working. > > that's good. > >> Do you know why it's required additional brackets and it's handling? > > i just reactivated my regexp-brain-cells and saw the brackets. ;) > possibly you want to dive into regexps. then you will get aquainted > with the brackets for grouping. > > but ali noticed that you don't need brackets on his box. maybe it's a > bug (or inconvenience) in aquamacs. see his post and hopefully some > follow-ups. > The parentheses are redundant. Perhaps it is an Aquamacs issue. With GnuEmacs 24 on Linux, the following search works fine: C-c / / TODO\|STARTED That said, for this use, a TODO keyword search will be quicker and more accurate, as the regexp search above will match "todo" or "started" anywhere in the buffer. Here's the todo search: C-c / T TODO|STARTED Best, Matt