From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [babel] ob-octave requires octave 3.2 or extra package Date: Mon, 01 Nov 2010 08:46:11 +0000 Message-ID: <87vd4hz6ta.fsf@pinto.chemeng.ucl.ac.uk> References: <874oc3s7zo.fsf@ucl.ac.uk> <87pquq8gum.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCrSc-0001p0-6r for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 06:17:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCrSa-0004Aw-Od for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 06:17:54 -0400 Received: from vscani-b2.ucl.ac.uk ([144.82.108.135]:44613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCrSa-000495-Jf for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 06:17:52 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: Emacs Org mode mailing list Dan Davison writes: > Eric S Fraga writes: > >> Hello, >> >> Just a comment on requirements: ob-octave assumes the presence of the >> =dlmwrite= function. This is available as standard with octave 3.2 but >> requires an extra package (=octave-io=) if you have an older version >> (3.0.x). All of this is for Debian systems; I cannot speak about others >> of course. > > Hi Eric, > > Thanks. When dlmwrite is missing, is a helpful error message given? > (When not using a session, if an error message is written to stdout, > then it should pop up in a dedicated babel error message buffer). yes, an error message is generated which is basically helpful enough. However, it took a while for me to realise that the error was referring to the octave code generated by babel to generate the output file (i.e. the message refers to line 2 and I had no line 2 in my octave code as it consisted of one expression). > If the error message is not helpful, do you think we should > programatically test for the function in octave code and display our > own error message when it is absent? I think this would be a good idea. However, given that dlmwrite is available by default in octave 3.2, the /stable/ version and one which will be the default in Debian stable soon, it may simply be a case of extending the babel documentation to highlight this. > If you have time to add relevant notes to > Worg:org-contrib/babel/languages/ob-doc-octave-matlab.org > that would be much appreciated. > > Dan I'll put it on my todo list... don't have much time at the moment but hopefully next week I will. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D