emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
To: evita moreno <evitamoreno80@live.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-mode and searching for multiple occurances
Date: Wed, 10 Feb 2010 16:46:28 +0100	[thread overview]
Message-ID: <4B72D4D4.6050202@cs.tu-berlin.de> (raw)
In-Reply-To: <SNT111-W3104C08D5800D7E9E4C7DDD04F0@phx.gbl>

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. 
> <https://signup.live.com/signup.aspx?id=60969>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

  reply	other threads:[~2010-02-10 15:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 15:34 Org-mode and searching for multiple occurances evita moreno
2010-02-10 15:46 ` Stephan Schmitt [this message]
2010-02-10 21:20 ` Matt Lundin
2010-02-11  9:45   ` Stephan Schmitt
2010-02-11 10:09     ` Giovanni Ridolfi
2010-02-11 12:08       ` Matthew Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B72D4D4.6050202@cs.tu-berlin.de \
    --to=drmabuse@cs.tu-berlin.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=evitamoreno80@live.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).