emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Dan Davison <dandavison7@gmail.com>
Cc: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [babel] ob-octave requires octave 3.2 or extra package
Date: Mon, 01 Nov 2010 08:46:11 +0000	[thread overview]
Message-ID: <87vd4hz6ta.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: 87pquq8gum.fsf@gmail.com

Dan Davison <dandavison7@gmail.com> writes:

> Eric S Fraga <ucecesf@ucl.ac.uk> 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

      reply	other threads:[~2010-11-01 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 21:09 [babel] ob-octave requires octave 3.2 or extra package Eric S Fraga
2010-10-31 16:30 ` Dan Davison
2010-11-01  8:46   ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vd4hz6ta.fsf@pinto.chemeng.ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).