From mboxrd@z Thu Jan 1 00:00:00 1970 From: T. Short Subject: Re: Expanding highlighted nodes Date: Tue, 24 Jun 2008 15:48:07 +0000 (UTC) Message-ID: References: <0DC559BA-8BCD-4E15-9C71-CD1CFAEC3183@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBAkt-00068j-9Q for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 11:48:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBAks-00067x-EC for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 11:48:26 -0400 Received: from [199.232.76.173] (port=43683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBAks-00067r-5A for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 11:48:26 -0400 Received: from main.gmane.org ([80.91.229.2]:43364 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KBAkr-0000ek-In for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 11:48:25 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KBAkj-0006aJ-EW for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 15:48:18 +0000 Received: from static-68-236-159-227.alb.east.verizon.net ([68.236.159.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jun 2008 15:48:17 +0000 Received: from tshort by static-68-236-159-227.alb.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jun 2008 15:48:17 +0000 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: emacs-orgmode@gnu.org Carsten Dominik 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