[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org-mode version 4.54

From: Carsten Dominik
Subject: Re: [Orgmode] Org-mode version 4.54
Date: Sun, 12 Nov 2006 18:21:30 +0100

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."
  (let (beg end (bufname "*Org Indirect*"))
      (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)

Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

reply via email to

[Prev in Thread] Current Thread [Next in Thread]