From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Grigera Subject: Problem (bug?) evaluating octave code ("function name does not agree with file name) Date: Tue, 18 Aug 2015 10:42:11 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRh9e-0004Po-Nr for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 09:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRh9Z-0007QP-3J for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 09:42:18 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:36431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRh9Y-0007Q2-Vv for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 09:42:13 -0400 Received: by obkg7 with SMTP id g7so9512955obk.3 for ; Tue, 18 Aug 2015 06:42:11 -0700 (PDT) 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: emacs-orgmode 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 #+BEGIN_SRC octave 1; function y=dup(x) y=2*x; end dup(2) #+END_SRC fails with : warning: function name 'dup' does not agree with function file name '' : error: 'dup' undefined near line 1 column 1 on evaluating, despite the "1;" trick at the beginning. Saving to foo.m and running from octave works fine. I'm using Emacs 24.4.1 Org-mode version 8.3.1 (8.3.1-56-g17a225-elpa) GNU Octave, version 3.8.2 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? Thanks in advance Tomas