Function: org-agenda-tree-to-indirect-buffer

org-agenda-tree-to-indirect-buffer is an interactive and byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-tree-to-indirect-buffer ARG)

Documentation

Show the subtree corresponding to the current entry in an indirect buffer.

This calls the command org-tree-to-indirect-buffer from the original buffer.

With a numerical prefix ARG, go up to this level and then take that tree. With a negative numeric ARG, go up by this number of levels.

With a C-u (universal-argument) prefix, make a separate frame for this tree, i.e. don't use the dedicated frame.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-tree-to-indirect-buffer (arg)
  "Show the subtree corresponding to the current entry in an indirect buffer.
This calls the command `org-tree-to-indirect-buffer' from the original buffer.

With a numerical prefix ARG, go up to this level and then take that tree.
With a negative numeric ARG, go up by this number of levels.

With a `\\[universal-argument]' prefix, make a separate frame for this tree, \
i.e. don't use
the dedicated frame."
  (interactive "P")
  (org-agenda-check-no-diary)
  (let* ((marker (or (org-get-at-bol 'org-marker)
		     (org-agenda-error)))
	 (buffer (marker-buffer marker))
	 (pos (marker-position marker)))
    (with-current-buffer buffer
      (save-excursion
	(goto-char pos)
	(org-tree-to-indirect-buffer arg))))
  (setq org-agenda-last-indirect-buffer org-last-indirect-buffer))