From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel for maxima Date: Mon, 26 Mar 2012 07:47:14 -0400 Message-ID: <87limnpo1q.fsf@gmx.com> References: <18D32FCB-CF4E-499A-86C7-575F777666B3@univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCAWG-0007EH-VM for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCAWA-000155-HU for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:36 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:38449) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SCAWA-00014g-Ap for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:30 -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: Neuwirth Erich Cc: emacs-orgmode@gnu.org Neuwirth Erich writes: > I have a suggestion for the maxima mode in org-babel. > I am using Emacs on a Mac which means that some hint work differently. > The standard distribution of Maxima for the mac does not have a command 'maxima' anywhere on the path. > > The way to start character mode maxima from a shell is using > /Applications/Maxima.App/Contents/Resources/maxima.sh > > > Maxima itself brings an emacs mode with the standard distribution, and > in maxima mode for Emacs he maxima command can be configured by using > (setq maxima-command "/Applications/Maxima.app/Contents/Resources/maxima.sh") > in .emacs > > So it makes sense that maxima mode in org does > > (require 'maxima) > and then uses maxima-command when it defines the function > > > (defun org-babel-execute:maxima > > I hope this is a reasonable suggestion. > This is a very reasonable suggestion. I've just added a new custom variable named `org-babel-maxima-command' to ob-maxima.el. This variable will default to the value of maxima-command if it is already defined or simply "maxima" otherwise, however it can be set in your configuration. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/