emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: T. Short <tshort@epri.com>
To: emacs-orgmode@gnu.org
Subject: Re: Expanding highlighted nodes
Date: Tue, 24 Jun 2008 15:48:07 +0000 (UTC)	[thread overview]
Message-ID: <loom.20080624T152945-49@post.gmane.org> (raw)
In-Reply-To: 0DC559BA-8BCD-4E15-9C71-CD1CFAEC3183@uva.nl

Carsten Dominik <dominik <at> uva.nl> writes:

> On Jun 23, 2008, at 7:50 PM, T. Short wrote:
> 
> > Is there a way to expand highlighted nodes? I really like the tags  
> > tree (C-c \)
> > and the TODO tree (C-c C-v). After either of these, I'd like to expand
> > everything under the highlighted nodes.
> 
> Not really.  You might want to look into the new mapping API which  
> would make it easy
> to implement something like this.
> 

Here's a way to expand highlighted areas that works with C-c \ and C-c C-v and
other highlighted sparse trees:

(defun org-expand-highlights ()
"Expand (cycle) highlighted tree nodes"
  (interactive)
  (dolist (highlight org-occur-highlights)
    (goto-char (overlay-start highlight))
    (org-cycle)))

Note that I barely know emacs lisp, so this may be clumsy. It appears to work
well enough for me. It does leave the node following highlighted.

- ts

  reply	other threads:[~2008-06-24 15:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 17:50 Expanding highlighted nodes T. Short
2008-06-24  6:31 ` Carsten Dominik
2008-06-24 15:48   ` T. Short [this message]
2008-06-24 16:35     ` Carsten Dominik
2008-06-24 16:43       ` T. Short

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=loom.20080624T152945-49@post.gmane.org \
    --to=tshort@epri.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).