all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Access outline from a code block
@ 2016-07-31 19:09 Rob Duncan
  0 siblings, 0 replies; only message in thread
From: Rob Duncan @ 2016-07-31 19:09 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

The manual states that the :var header argument can be given a reference to a table, a list, a literal example, a code block, or results.  But I want to use a reference to an outline tree—is there some way to do this?  My experiments have all failed:

#+NAME: example-outline
* L1
** L2a
*** L3a
** L2b
** L2c

* Results
#+NAME: table-length
#+BEGIN_SRC emacs-lisp :var ref=example-outline
(print (format "%S" ref))
  #+END_SRC

#+RESULTS: table-length
: "nil"

Alternatively, is there a way to pass the name as a literal and then explicitly resolve it within the code block and get the outline data?

Thanks,

Rob.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-31 19:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-31 19:09 Access outline from a code block Rob Duncan

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.