emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Olle Palmius <o.palmius@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel] Error Before first headline.
Date: Tue, 3 Aug 2010 13:02:05 +0200	[thread overview]
Message-ID: <AANLkTi=juRqyywtbNsdPtbEpKRgtVjGvjfMpkJ=DQ9Kz@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 885 bytes --]

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
#<buffer test.org>)
  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\x10eb\210\310 \311\312#\203\370

[-- Attachment #1.2: Type: text/html, Size: 1144 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2010-08-03 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 11:02 Olle Palmius [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-08-03 11:49 [babel] Error Before first headline Rustom Mody

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='AANLkTi=juRqyywtbNsdPtbEpKRgtVjGvjfMpkJ=DQ9Kz@mail.gmail.com' \
    --to=o.palmius@gmail.com \
    --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).