summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Thum <simon.thum@gmx.de>2012-05-08 13:31:11 +0200
committerBastien Guerry <bzg@altern.org>2012-05-08 14:13:27 +0200
commit925aeebaadfca1c591d0b040bb46f05ab3b8d173 (patch)
treea08c8cec8779fa1f502d63c320e66f70f51fa79f
parent867c6e38fa6b9ede6d34ebe9a8b679b104952552 (diff)
downloadorg-mode-925aeebaadfca1c591d0b040bb46f05ab3b8d173.tar.gz
Org-Babel: fix maxima invocation without explicit parameters
* ob-maxima.el (org-babel-execute:maxima): Let cmdline always return a string. TINYCHANGE Signed-off-by: Simon Thum <simon.thum@gmx.de>
-rw-r--r--lisp/ob-maxima.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el
index b092e13..21bae78 100644
--- a/lisp/ob-maxima.el
+++ b/lisp/ob-maxima.el
@@ -70,7 +70,7 @@ called by `org-babel-execute-src-block'."
(message "executing Maxima source code block")
(let ((result-params (split-string (or (cdr (assoc :results params)) "")))
(result
- (let* ((cmdline (cdr (assoc :cmdline params)))
+ (let* ((cmdline (or (cdr (assoc :cmdline params)) ""))
(in-file (org-babel-temp-file "maxima-" ".max"))
(cmd (format "%s --very-quiet -r 'batchload(%S)$' %s"
org-babel-maxima-command in-file cmdline)))