From: Carsten Dominik <dominik@science.uva.nl>
To: "Jason F. McBrayer" <jmcbray@carcosa.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-mode version 4.54
Date: Sun, 12 Nov 2006 18:21:30 +0100 [thread overview]
Message-ID: <898bf39863feccc6d074a9e182e3af87@science.uva.nl> (raw)
In-Reply-To: <1163337641.16187.2.camel@bertrand>
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
next prev parent reply other threads:[~2006-11-12 17:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 9:21 Org-mode version 4.54 Carsten Dominik
[not found] ` <b71b18520611101209q62c9a5edo9c3e0268bc11635d@mail.gmail.com>
2006-11-11 9:40 ` Carsten Dominik
2006-11-11 14:39 ` Eddward DeVilla
2006-11-12 13:20 ` Jason F. McBrayer
2006-11-12 17:21 ` Carsten Dominik [this message]
2006-11-13 13:39 ` Jason F. McBrayer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=898bf39863feccc6d074a9e182e3af87@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=jmcbray@carcosa.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.