From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: bug in tangling code? Date: Wed, 29 Jan 2014 13:30:49 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb2073ce0e8ac04f1202389 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8ZuW-0008Dy-JL for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 13:30:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8ZuV-0003PW-E3 for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 13:30:52 -0500 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]:53475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8ZuV-0003PG-6G for emacs-orgmode@gnu.org; Wed, 29 Jan 2014 13:30:51 -0500 Received: by mail-pd0-f178.google.com with SMTP id y13so2032206pdi.9 for ; Wed, 29 Jan 2014 10:30:50 -0800 (PST) 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@gnu.org" --e89a8fb2073ce0e8ac04f1202389 Content-Type: text/plain; charset=ISO-8859-1 There seems to be a bug in org-mode 8.2.5g for tangling source blocks. If I have an org-file with just this in it: #+BEGIN_SRC python :tangle test2.py a = 1 print a*2 #+END_SRC #+RESULTS: : 2 And then I run org-babel-tangle, I get this error: byte-code: Before first headline at position 3 in buffer test.org<2> The file tangles fine with an older org7.9 version. It also tangles fine if I add a headline above the source block. The error seems to come from this line: (org-back-to-heading t) ; Sets match data L476 in ob-tangle.el John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --e89a8fb2073ce0e8ac04f1202389 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
There seems to be a bug in org-mode 8.2.5g for tangli= ng source blocks.

If I have an org-file with just this in it:=

#+BEGIN_SRC python :tangle test2.py

a =3D 1
print a*2

#+END_SRC

#+RESULTS:
: 2

And= =A0 then I run org-babel-tangle, I get this error:

byte-c= ode: Before first headline at position 3 in buffer test.org<2>

The file tangles fine with an older org7.9 version. It also = tangles fine if I add a headline above the source block.

The error s= eems to come from this line:
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (org-back-= to-heading t)=A0 ; Sets match data

L476 in ob-tangle.el

Jo= hn

-----------------------------------
John Kitchin
Associate = Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingr= oup.cheme.cmu.edu

--e89a8fb2073ce0e8ac04f1202389--