From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [babel] Maxima code blocks do not work Date: Wed, 29 Jun 2011 17:32:25 +0100 Message-ID: <8739is61k6.fsf@ucl.ac.uk> References: <4E08EA0C.1080305@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbyuY-0000bU-Ji for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 13:50:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbyuW-0005Ft-5V for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 13:50:50 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:35178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbyuV-0005Ef-Lr for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 13:50:47 -0400 In-Reply-To: <4E08EA0C.1080305@uni-koeln.de> (Bernd Weiss's message of "Mon, 27 Jun 2011 16:37:32 -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: Bernd Weiss Cc: emacs-orgmode@gnu.org Bernd Weiss writes: [...] > Hi Eric, > > Again, thanks a lot for your help! You're very welcome! > 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 Actually, it is still an org issue, albeit one which requires input from those with much more Windows knowledge than I have. It's an org issue because I think we do (or should) strive to have org, as a whole, work on any system that runs Emacs? There are only two arguments to the maxima invocation above: =--very-quiet= to minimise the amount of superfluous output and =-r= to ask maxima to execute the following maxima command ("batchload(...)") which is what tells maxima to execute commands from the file that babel creates. If you (anybody) can figure out the magic incantation necessary to invoke maxima on Windows and have it execute commands from a file, it should be straightforward to upgrade the =ob-maximal.el= file to use the right incantation depending on the operating system. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.510.g56080)