From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-mode version 4.54 Date: Sun, 12 Nov 2006 18:21:30 +0100 Message-ID: <898bf39863feccc6d074a9e182e3af87@science.uva.nl> References: <6f590735e02de466c2549d0064409636@science.uva.nl> <4bf082a89b124acc834e78750786bcb7@science.uva.nl> <1163337641.16187.2.camel@bertrand> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjJ1U-0003fa-OJ for emacs-orgmode@gnu.org; Sun, 12 Nov 2006 12:21:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjJ1R-0003fO-KC for emacs-orgmode@gnu.org; Sun, 12 Nov 2006 12:21:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjJ1R-0003fL-EV for emacs-orgmode@gnu.org; Sun, 12 Nov 2006 12:21:33 -0500 Received: from [193.252.22.241] (helo=smtp-1.orange.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GjJ1R-0007DQ-6x for emacs-orgmode@gnu.org; Sun, 12 Nov 2006 12:21:33 -0500 In-Reply-To: <1163337641.16187.2.camel@bertrand> 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: "Jason F. McBrayer" Cc: emacs-orgmode@gnu.org On Nov 12, 2006, at 14:20, Jason F. McBrayer wrote: > On Sat, 2006-11-11 at 08:39 -0600, Eddward DeVilla wrote: >> I thought I read someone else had a function to >> open a todo item and it's subtree into an indirect buffer with the >> rest of the document hidden. I'm still probably going to try to learn >> to write something to do it. > > That would be quite handy, especially used with pop-up-frames. You > could have a more task-oriented rather than file-oriented view of your > collection of org files this way. You mean something like this?: (defun org-tree-to-indirect-buffer () "Create indirect buffer and narrow it to current subtree." (interactive) (let (beg end (bufname "*Org Indirect*")) (save-excursion (org-back-to-heading t) (setq beg (point)) (org-end-of-subtree t) (setq end (point))) (if (get-buffer bufname) (kill-buffer bufname)) (pop-to-buffer (make-indirect-buffer (current-buffer) bufname 'clone)) (narrow-to-region beg end) (show-all))) -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477