From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Where are Babel code block results kept?
Date: Sun, 6 Dec 2015 21:02:52 +0000 [thread overview]
Message-ID: <CAFAhFSWCYrEMczMAG0otqPqq9ojCM1EYjkd9_3mRGtyw_V2uQw@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2015-12-06 21:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFAhFSWCYrEMczMAG0otqPqq9ojCM1EYjkd9_3mRGtyw_V2uQw@mail.gmail.com \
--to=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 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).