[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Possible Calc support for Org-Babel?
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Possible Calc support for Org-Babel? |
Date: |
Fri, 29 Oct 2010 12:14:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Eric,
This is really nice!
I had a problem initially in that calc-push-list was undefined. I had
to initiate calc first so maybe a
: (require 'calc)
is required to ensure the functions you use are available?
Then, out of the three examples you give, only one (3^3) worked. The
others give me:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument stringp (2 "Expected a
number"))
string-match("\\` *\\([0-9]+\\) *\\'" (2 "Expected a number"))
math-read-number((2 "Expected a number"))
(list (math-read-number (calc-eval line)))
(calc-push-list (list (math-read-number ...)))
(if (string= "'" (substring line 0 1)) (funcall (lookup-key calc-mode-map
...) nil) (calc-push-list (list ...)))
(progn (if (string= "'" ...) (funcall ... nil) (calc-push-list ...)))
(if (> (length line) 0) (progn (if ... ... ...)))
(when (> (length line) 0) (if (string= "'" ...) (funcall ... nil)
(calc-push-list ...)))
(lambda (line) (when (> ... 0) (if ... ... ...)))(" '+")
mapcar((lambda (line) (when (> ... 0) (if ... ... ...))) (" 1" " 2" " '+"
""))
org-babel-execute:calc(" 1\n 2\n '+\n" ((:colname-names) (:rowname-names)
(:result-params "replace") (:result-type . value) (:comments . "") (:shebang .
"") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
(:results . "replace") (:hlines . "no") (:session . "none")))
org-babel-execute-src-block(nil ("calc" " 1\n 2\n '+\n" ((:colname-names)
(:rowname-names) (:result-params "replace") (:result-type . value) (:comments .
"") (:shebang . "") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports
. "code") (:results . "replace") (:hlines . "no") (:session . "none")) "" nil
0))
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
--8<---------------cut here---------------end--------------->8---
Have I done something wrong?
I am particularly excited, once it works for me, to use this for
/inline/ babel executions!
Thanks,
eric
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
- [Orgmode] Possible Calc support for Org-Babel?, Matthew Oesting, 2010/10/22
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/26
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/29
- Re: [Orgmode] Possible Calc support for Org-Babel?, Carsten Dominik, 2010/10/29
- Re: [Orgmode] Possible Calc support for Org-Babel?,
Eric S Fraga <=
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/29
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/29
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric S Fraga, 2010/10/29
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/29
- Message not available
- Message not available
- Re: [Orgmode] Possible Calc support for Org-Babel?, Eric S Fraga, 2010/10/30
- [Orgmode] Re: Possible Calc support for Org-Babel?, Sébastien Vauban, 2010/10/29
- Re: [Orgmode] Re: Possible Calc support for Org-Babel?, Eric Schulte, 2010/10/29