From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: bug in tangling code?
Date: Wed, 29 Jan 2014 13:30:49 -0500 [thread overview]
Message-ID: <CAJ51EToScPYf+0tdBxBFBmLSftLL=Q0r3rK7Tn99xCTfxPHBig@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2014-01-29 18:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 18:30 John Kitchin [this message]
2014-01-29 23:57 ` bug in tangling code? Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51EToScPYf+0tdBxBFBmLSftLL=Q0r3rK7Tn99xCTfxPHBig@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).