emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where are Babel code block results kept?
@ 2015-12-06 21:02 Lawrence Bottorff
  0 siblings, 0 replies; only message in thread
From: Lawrence Bottorff @ 2015-12-06 21:02 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

I do this

#+name: org-calc2
#+begin_src emacs-lisp :session :tangle yes :cache yes
(calc-eval "deg(42@ 26' 36.42\")")
#+end_src

#+name:org-calc3
#+begin_src emacs-lisp
(expt (string-to-number (org-sbe "org-calc2")) 2)
#+end_src

#+name:org-calc4
#+begin_src emacs-lisp
(+ 1 (string-to-number (org-sbe "org-calc3")))
#+end_src

#+RESULTS: org-calc4
: 1802.4464479024998

and then evaluate org-calc4, which works fine. One question: Is there any
way to not need the (string-to-number ...) wrapper? Another question: These
names org-calc2, org-calc3, org-calc4 are not members of Emacs' "features",
so where are they kept and how are they made active? Could org-mode make
them globally available and not just in that buffer? I would guess we're
actually doing "Library of Babel" ingestion with org-sbe?

LB

[-- Attachment #2: Type: text/html, Size: 1154 bytes --]

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

only message in thread, other threads:[~2015-12-06 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-06 21:02 Where are Babel code block results kept? Lawrence Bottorff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).