emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [babel] Error Before first headline.
@ 2010-08-03 11:49 Rustom Mody
  2010-08-03 13:07 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Rustom Mody @ 2010-08-03 11:49 UTC (permalink / raw)
  To: emacs-orgmode


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

> Hi im trying to figure out how to generate sourcefiles from babel files
and i keep getting the same error.

Tried putting a 'first headline' as it wants?
ie
* Dummy header
#+BEGIN_SRC emacs-lisp
(defun org-xor (a b)
etc

[-- Attachment #1.2: Type: text/html, Size: 274 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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [babel] Error Before first headline.
@ 2010-08-03 11:02 Olle Palmius
  0 siblings, 0 replies; 5+ messages in thread
From: Olle Palmius @ 2010-08-03 11:02 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-03 22:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 11:49 [babel] Error Before first headline Rustom Mody
2010-08-03 13:07 ` Eric Schulte
2010-08-03 17:09   ` Eric Schulte
2010-08-03 22:00     ` Eric Schulte
  -- strict thread matches above, loose matches on Subject: below --
2010-08-03 11:02 Olle Palmius

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).