emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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 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).