From: Simon Thum <simon.thum@gmx.de>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Org-babel: Maxima invocation fix
Date: Mon, 07 May 2012 21:12:45 +0200 [thread overview]
Message-ID: <4FA81EAD.70403@gmx.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
Hi all,
I'm sure there is a better way to fix this, but the attached patch helps
me to not get something like "Warning: argument nil not recognized"
spoiling every maxima result.
I guess I might also fix this by adding explicit :cmdline amendments,
but was too lazy to double-check.
Cheers,
Simon
[-- Attachment #2: 0001-fix-maxima-invocation-without-explicit-parameters.patch --]
[-- Type: text/x-patch, Size: 1000 bytes --]
From c2a506dd076d0ddb4a7eb925ff5276fdd60abe58 Mon Sep 17 00:00:00 2001
From: Simon Thum <simon.thum@gmx.de>
Date: Mon, 7 May 2012 21:05:16 +0200
Subject: [PATCH] fix maxima invocation without explicit parameters
Signed-off-by: Simon Thum <simon.thum@gmx.de>
---
lisp/ob-maxima.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el
index b092e13..fdd0804 100644
--- a/lisp/ob-maxima.el
+++ b/lisp/ob-maxima.el
@@ -73,7 +73,7 @@ called by `org-babel-execute-src-block'."
(let* ((cmdline (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)))
+ org-babel-maxima-command in-file (if cmdline cmdline ""))))
(with-temp-file in-file (insert (org-babel-maxima-expand body params)))
(message cmd)
((lambda (raw) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' "
--
1.7.3.4
next reply other threads:[~2012-05-07 19:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 19:12 Simon Thum [this message]
2012-05-07 21:02 ` Org-babel: Maxima invocation fix Achim Gratz
2012-05-08 11:38 ` Simon Thum
2012-05-08 12:15 ` Bastien
2012-05-08 15:19 ` Simon Thum
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FA81EAD.70403@gmx.de \
--to=simon.thum@gmx.de \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.