From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Re: Org-mode and searching for multiple occurances Date: Wed, 10 Feb 2010 16:46:28 +0100 Message-ID: <4B72D4D4.6050202@cs.tu-berlin.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfExG-0000ro-JT for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 10:58:18 -0500 Received: from [199.232.76.173] (port=44435 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfExF-0000rY-GL for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 10:58:17 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfEx6-0006vO-CI for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 10:58:15 -0500 Received: from mail.cs.tu-berlin.de ([130.149.17.13]:51353) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfEx3-0006uX-Dq for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 10:58:06 -0500 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id 9E1AA3230A for ; Wed, 10 Feb 2010 16:58:01 +0100 (MET) In-Reply-To: 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: evita moreno Cc: emacs-orgmode@gnu.org Hello Evita, you may want to try M-x org-occur: > org-occur is an interactive compiled Lisp function in `org.el'. > > (org-occur regexp &optional keep-previous callback) > > Make a compact tree which shows all matches of regexp. > The tree will show the lines where the regexp matches, and all higher > headlines above the match. It will also show the heading after the match, > to make sure editing the matching entry is easy. > If keep-previous is non-nil, highlighting and exposing done by a previous > call to `org-occur' will be kept, to allow stacking of calls to this > command. > If callback is non-nil, it is a function which is called to confirm > that the match should indeed be shown. But this only shows the matching entries, it doesn't generate a list of the entries (like running a query on a database). Hth, Stephan Also sprach evita moreno: > Hello to everyone! > > I am a teacher trying to teach young people how to use org-mode for > writing. We have created a database with notes on literature review > outlined in org-mode in the following format: > > * jones2000 > blah blah blah keyword1 keyword2 > *jones2007 > blah blah keyword2 > > and so on. I was wondering whether there is a way where one can search > for a keyword in the database (more than 350 papers up to now) and can > get in an automatic fashion in which of the jones' entries these > keywords occur (pretty much like using MS Access and running a query). > Is this possible? Maybe what I am asking for is outright > crazy/impossible but I thought I should give it a go! > > Evita > > > ------------------------------------------------------------------------ > Hotmail: Free, trusted and rich email service. Get it now. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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