From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olle Palmius Subject: [babel] Error Before first headline. Date: Tue, 3 Aug 2010 13:02:05 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1872633740==" Return-path: Received: from [140.186.70.92] (port=39310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgFJG-0005Hr-O2 for emacs-orgmode@gnu.org; Tue, 03 Aug 2010 07:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgFG3-0007wf-44 for emacs-orgmode@gnu.org; Tue, 03 Aug 2010 07:02:08 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:65083) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgFG3-0007wW-1v for emacs-orgmode@gnu.org; Tue, 03 Aug 2010 07:02:07 -0400 Received: by vws16 with SMTP id 16so3405245vws.0 for ; Tue, 03 Aug 2010 04:02:06 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1872633740== Content-Type: multipart/alternative; boundary=0016367d5dee6497e1048ce93f51 --0016367d5dee6497e1048ce93f51 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. I have tried a few different codeblocks from the documentation and the only thing that changes is the "position" number. I hope i have not missed something in the documentation. Code: #+BEGIN_SRC emacs-lisp (defun org-xor (a b) "Exclusive or." (if a (not b) b)) #+END_SRC Debug message: Debugger entered--Lisp error: (error "Before first headline at position 1 in buffer test.org") signal(error ("Before first headline at position 1 in buffer test.org")) error("Before first headline at position %d in buffer %s" 1 #) byte-code("\300\301`p#\207" [error "Before first headline at position %d in buffer %s"] 4) org-back-to-heading(t) org-heading-components() byte-code("\306\307 !\210p=10eb\210\310 \311\312#\203\370 --0016367d5dee6497e1048ce93f51 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi im trying to figure out how to generate sourcefiles from babel
files = and i keep getting the same error.
I have tried a few different codebloc= ks from the documentation
and the only thing that changes is the "= position" number.
I hope i have not missed something in the documentation.


Code:<= br>
#+BEGIN_SRC emacs-lisp=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
(defu= n org-xor (a b)
=A0"Exclusive or."
(if a (not b) b))
#+E= ND_SRC
=A0

Debug message:

Debugger entered--Lisp error: (error "Before first headline at position 1 in buffer test.org")
= =A0 signal(error ("Before first headline at position 1 in buffer
<= a href=3D"http://test.org">test.org"))
=A0 error("Before first headline at position %d in buffer %s" 1 <= br>#<buffer test.org>)
=A0 byte-co= de("\300\301`p#\207" [error "Before first headline at
po= sition %d in buffer %s"] 4)
=A0 org-back-to-heading(t)
=A0 org-heading-components()
=A0 byte-code= ("\306\307 !\210p=10eb\210\310 \311\312#\203\370
--0016367d5dee6497e1048ce93f51-- --===============1872633740== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1872633740==--