On Tue, Dec 7, 2010 at 1:29 PM, Marco (m) Wahl <marcow...@gmail.com> wrote: > Juri Artamonov <jartamo...@gmail.com> 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. _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode