From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Org-babel: Maxima invocation fix Date: Mon, 07 May 2012 21:12:45 +0200 Message-ID: <4FA81EAD.70403@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000102040306090206020806" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRTMb-0000vX-D4 for emacs-orgmode@gnu.org; Mon, 07 May 2012 15:12:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRTMZ-0008E6-Id for emacs-orgmode@gnu.org; Mon, 07 May 2012 15:12:52 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:36983) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SRTMZ-0008DO-9I for emacs-orgmode@gnu.org; Mon, 07 May 2012 15:12:51 -0400 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 This is a multi-part message in MIME format. --------------000102040306090206020806 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000102040306090206020806 Content-Type: text/x-patch; name="0001-fix-maxima-invocation-without-explicit-parameters.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-fix-maxima-invocation-without-explicit-parameters.patch" >From c2a506dd076d0ddb4a7eb925ff5276fdd60abe58 Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Mon, 7 May 2012 21:05:16 +0200 Subject: [PATCH] fix maxima invocation without explicit parameters Signed-off-by: Simon Thum --- 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 --------------000102040306090206020806--