emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Juan <Pechiar@computer.org>
Cc: emacs-orgmode@gnu.org, "d.tchin" <d.tchin@voila.fr>
Subject: Re: [BABEL] Output with octave + [PATCH] x2
Date: Sun, 01 Aug 2010 18:19:30 -0400	[thread overview]
Message-ID: <87hbje2cy5.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <20100801200727.GT5569@soloJazz.com> (Juan's message of "Sun, 1 Aug 2010 17:07:27 -0300")

Juan <Pechiar@computer.org> writes:

> Hi,
>
> I'm starting to work with ob-octave and found several problems:

Hi Juan,

Thanks very much. I've applied your patch with one minor change:

(format "%s" (or var "nil"))

However, is there a better way to receive an elisp nil value in octave?

> I'm not working with sessions, so I have not yet tested the original
> problem reported with 'org_babel_eoe' showing up as result.

Sorry to pursue you for more help, but that problem is not limited to
sessions. A very simple demonstration of it is

#+begin_src octave
x = 5
x
#+end_src

#+results:
: /usr/share/octave/packages/3.2

This happens because neither of these two lines of code alter the value
of 'ans' (I presume the value we are seeing is something from octave's
start-up sequence).

Contrast this with

#+begin_src octave
x = 5
x+0
#+end_src

#+results:
: 5.00000000e+00

Any idea of the best way forward?

Dan

>
> Regards,
> .j.
>
>
>
> On Sun, Aug 01, 2010 at 02:18:40PM -0400, Dan Davison wrote:
>> Eric S Fraga <ucecesf@ucl.ac.uk> writes:
>> > On Fri, 23 Jul 2010 16:59:43 +0000 (UTC), d.tchin <d.tchin@voila.fr> wrote:
>> >> I have problem to get output back in org mode file.
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-08-01 22:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 16:59 [BABEL] Output with octave d.tchin
2010-07-23 23:12 ` Eric S Fraga
2010-07-26 14:25   ` d.tchin
2010-08-01 18:18   ` Dan Davison
2010-08-01 20:07     ` Re: [BABEL] Output with octave + [PATCH] x2 Juan
2010-08-01 20:22       ` Re: [BABEL] Output with octave [PATCH] Juan Pechiar
2010-08-04  4:18         ` Dan Davison
2010-08-04 15:15           ` d.tchin
2010-08-01 22:19       ` Dan Davison [this message]
2010-08-01 22:55         ` [BABEL] Octave issues Juan
2010-08-01 23:32           ` Dan Davison
2010-08-02  9:30     ` [BABEL] Output with octave d.tchin
2010-08-04  4:15       ` Dan Davison

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=87hbje2cy5.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=Pechiar@computer.org \
    --cc=d.tchin@voila.fr \
    --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).