From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Weiss Subject: Re: [babel] Maxima code blocks do not work Date: Mon, 27 Jun 2011 16:37:32 -0400 Message-ID: <4E08EA0C.1080305@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbIYt-0003Fi-AS for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 16:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbIYr-0001o1-9F for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 16:37:39 -0400 Received: from smtp-out.rrz.uni-koeln.de ([134.95.19.53]:50207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbIYq-0001ni-NF for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 16:37:37 -0400 Received: from smtp-auth.rrz.uni-koeln.de (smtp-auth.rrz.uni-koeln.de [134.95.19.93]) by smtp-out.rrz.uni-koeln.de (8.13.8/8.13.8) with ESMTP id p5RKbYOk012705 for ; Mon, 27 Jun 2011 22:37:34 +0200 Received: from [10.0.0.7] ([199.44.252.34]) (authenticated as user ahf34 using CRAM-MD5 bits=0) by smtp-auth.uni-koeln.de (8.13.8/8.13.8) with ESMTP id p5RKbWSq008273 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 27 Jun 2011 22:37:33 +0200 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@gnu.org Am 27.06.2011 10:32, schrieb Eric S Fraga: > Bernd Weiss writes: > > [...] > >> #+results: >> : incorrect syntax: / is not a prefix operator >> : incorrect syntax: aLH is not an infix operator >> : incorrect syntax: hCp is not an infix operator >> : incorrect syntax: Premature termination of input at $. >> : Maxima encountered a Lisp error: >> : parser: end of file while scanning expression. >> : Automatically continuing. >> : To enable the Lisp debugger set *debugger-hook* to nil. >> >> This message is 'related' (see lines 3 "aLH is not an infix operator" >> and 4 "hCp is not an infix operator") to the following Maxima call >> ("aLH/maxima-17716hCp"): >> >> maxima --very-quiet -r >> 'batchload("c:/Users/weiss/AppData/Local/Temp/babel-17716aLH/maxima-17716hCp")$' >> nil > > The error messages look like maxima is trying to evaluate the actual > string within double quotes! > >> Unfortunately, my elisp knowledge is too low to understand what's going >> on in ob-maxima.el. Is it a MS-Windows-thing ('/' vs '\')? > > Good question. Has anybody else used maxima with org babel on Windows? > I don't even have such a system to try... > > My guess would be that the "shell" command required to invoke maxima on > Windows needs to be significantly different than what we are using here > (which works on Linux). Then again, I've never really used Windows > (beyond starting Word on somebody else's document on somebody else's > machine... ;-) so I don't have a clue what Windows expects... Hi Eric, Again, thanks a lot for your help! Okay, it definitely is a Windows problem. If I run the following command in a cygwin shell, everything works as expected: maxima --very-quiet -r 'batchload("c:/Users/weiss/AppData/Local/Temp/babel-17716aLH/maxima-17716hCp")$' nil However, it does not work in a Windows shell. But this is no longer an org issue. Bernd