From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Where are Babel code block results kept? Date: Sun, 6 Dec 2015 21:02:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140376a5b2c870526411037 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5gSM-0003gJ-PB for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 16:02:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5gSL-0001bL-Ul for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 16:02:54 -0500 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:34900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5gSL-0001bG-O6 for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 16:02:53 -0500 Received: by lfdl133 with SMTP id l133so140162748lfd.2 for ; Sun, 06 Dec 2015 13:02:52 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist --001a1140376a5b2c870526411037 Content-Type: text/plain; charset=UTF-8 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 --001a1140376a5b2c870526411037 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I do this

#+name: org-calc2
<= div>#+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 ema= cs-lisp
(+ 1 (string-to-number (org-sbe "org-calc3")))<= /div>
#+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-t= o-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 a= vailable and not just in that buffer? I would guess we're actually doin= g "Library of Babel" ingestion with org-sbe?
=
LB
--001a1140376a5b2c870526411037--