From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Grigera Subject: Re: Problem (bug?) evaluating octave code ("function name does not agree with file name) Date: Tue, 18 Aug 2015 18:10:08 -0300 Message-ID: References: <87mvxol73r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRo99-0000g3-6L for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 17:10:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRo93-0001pt-C2 for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 17:10:15 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:34606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRo93-0001n7-2x for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 17:10:09 -0400 Received: by lbbtg9 with SMTP id tg9so112172229lbb.1 for ; Tue, 18 Aug 2015 14:10:08 -0700 (PDT) In-Reply-To: <87mvxol73r.fsf@ucl.ac.uk> 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: Tomas Grigera , emacs-orgmode Thanks Eric, My workaround was to use :session, though not completely satisfactory (I need to clean up the output). Your comment made me notice 1. octave reports the problem filename as empty 2. the undefined function call happens at 'line 1', which would not be the case if the whole code block was copied to a file. It seems babel is feeding octave the lines one-by-one. Strange. Tomas On Tue, Aug 18, 2015 at 4:38 PM, Eric S Fraga wrote: > On Tuesday, 18 Aug 2015 at 10:42, Tomas Grigera wrote: >> Hello list, >> >> I am a very happy user of orgmode and babel. I recently picked up a >> document from last year, and found that code blocks that used to >> evaluate fine now don't. A code block like this > > [...] > >> There has been some change, of which I am unaware, in the way babel >> handles this block that leads to this behaviour. However, it seems to >> me that it is a well-formed block and should evaluate fine. Am I >> wrong? > > Just to confirm that you are not wrong and I ran into this a while ago > now. That is, problems with functions defined in the middle of the code > as opposed to functions in their own .m files. I didn't have time to > figure out what was wrong at the time due to deadlines so found other > ways of doing what I wanted including @(x) function definitions. > > The strange thing is that babel seems to not leave any code in the /tmp > files it creates so I cannot see what code org babel is trying to execute. > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-117-gc98729