emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Darlan Cavalcante Moreira <darcamo@gmail.com>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Easily go to some frequently accessed heading (narrowed to region)
Date: Thu, 03 Feb 2011 12:37:20 +0000	[thread overview]
Message-ID: <871v3pfg5b.fsf@ucl.ac.uk> (raw)
In-Reply-To: <4d4a0e81.2945960a.1089.01aa@mx.google.com> (Darlan Cavalcante Moreira's message of "Wed, 02 Feb 2011 23:10:04 -0300")

Darlan Cavalcante Moreira <darcamo@gmail.com> writes:

> Thanks again Eric, this is a good solution for projects that are not
> accessed frequently for me (I only know some of the org search
> capabilities, I guess it is time to reread that section in the
> manual).

You're welcome!  The wealth of functionality in org is sometimes
overwhelming and it's fun to go back and read the manual (and this list)
to find out how much can actually be done with it.

> At last, using the initial code provided by Bastien I was able to
> program something that gives me what I wanted. The code is provided
> below.

Glad you managed to concoct a solution to your particular needs.  The
code looks good; I would only suggest one possible refinement that might
make it a little more general (depending on whether you have subprojects
within projects):

> #+begin_src emacs-lisp

[...]
>       (setq heading (concat "* " projectName))

[...]

>           (search-forward heading)

Maybe consider using the org regexp for headings (=org-outline-regexp=)
appended with your project name and then use =re-search-forward= to allow
you to find not just top level headings but also sub-headings?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.304.g71203.dirty)

  reply	other threads:[~2011-02-03 12:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 21:34 Easily go to some frequently accessed heading (narrowed to region) Darlan Cavalcante Moreira
2011-02-02  7:30 ` Eric S Fraga
2011-02-02 14:11   ` Darlan Cavalcante Moreira
2011-02-02 15:52     ` Eric S Fraga
2011-02-02 20:35       ` Alan E. Davis
2011-02-03  2:14         ` Darlan Cavalcante Moreira
2011-02-03  9:27         ` Sébastien Vauban
2011-02-03  2:10       ` Darlan Cavalcante Moreira
2011-02-03 12:37         ` Eric S Fraga [this message]
2011-02-02 10:28 ` Bastien
2011-02-02 14:14   ` Darlan Cavalcante Moreira
2011-02-05 17:57 ` Bernt Hansen

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=871v3pfg5b.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).