* bug in tangling code?
@ 2014-01-29 18:30 John Kitchin
2014-01-29 23:57 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: John Kitchin @ 2014-01-29 18:30 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1143 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug in tangling code?
2014-01-29 18:30 bug in tangling code? John Kitchin
@ 2014-01-29 23:57 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-01-29 23:57 UTC (permalink / raw)
To: John Kitchin; +Cc: emacs-orgmode@gnu.org
Hi John,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> And then I run org-babel-tangle, I get this error:
>
> byte-code: Before first headline at position 3 in buffer test.org<2>
Fixed, thanks.
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-29 23:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-29 18:30 bug in tangling code? John Kitchin
2014-01-29 23:57 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.