emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export fails with "byte-code: Before first headline at position ..."
@ 2015-04-26 19:35 Joon Ro
  2015-04-26 21:00 ` Rasmus
  2015-04-26 21:13 ` Joon Ro
  0 siblings, 2 replies; 3+ messages in thread
From: Joon Ro @ 2015-04-26 19:35 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

Hi,
When I try to export my org files I'm getting this error. For example:
byte-code: Before first headline at position 1 in buffer Blog.org<2>
I could not find any way to fix this - any help will be very appreciated.
Thank you,Joon
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 609 bytes --]

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

* Re: export fails with "byte-code: Before first headline at position ..."
  2015-04-26 19:35 export fails with "byte-code: Before first headline at position ..." Joon Ro
@ 2015-04-26 21:00 ` Rasmus
  2015-04-26 21:13 ` Joon Ro
  1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2015-04-26 21:00 UTC (permalink / raw)
  To: emacs-orgmode

Hi Joon,

Joon Ro <joon.ro@outlook.com> writes:

> When I try to export my org files I'm getting this error. For example:
> byte-code: Before first headline at position 1 in buffer Blog.org<2>
> I could not find any way to fix this - any help will be very appreciated.

Could you please send us a minimal example and clear instructions on how
to produce this error?  I was unable to reproduce it.

Thanks,
Rasmus

-- 
El Rey ha muerto. ¡Larga vida al Rey!

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

* Re: export fails with "byte-code: Before first headline at position ..."
  2015-04-26 19:35 export fails with "byte-code: Before first headline at position ..." Joon Ro
  2015-04-26 21:00 ` Rasmus
@ 2015-04-26 21:13 ` Joon Ro
  1 sibling, 0 replies; 3+ messages in thread
From: Joon Ro @ 2015-04-26 21:13 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]

Apparently it was caused by the following custom function for org-export-before-parsing-hook that I had to remove the subtree with "beameronly" tag:
(defun as/delete-ignored-heading (backend)
    (unless (equal backend 'beamer)
      ; remove subtree with beameronly tag
      (org-map-entries
       (lambda ()
         (progn
           (org-narrow-to-subtree)
           (org-cut-subtree)
           )
         )
       "+beameronly" 'tree)
      )
)
(setq org-export-before-parsing-hook '(as/delete-ignored-heading))


What I did wrong to cause this error? It worked for sum subtrees but not for others.
From: joon.ro@outlook.com
To: emacs-orgmode@gnu.org
Date: Sun, 26 Apr 2015 14:35:53 -0500
Subject: [O] export fails with "byte-code: Before first headline at position	..."




Hi,
When I try to export my org files I'm getting this error. For example:
byte-code: Before first headline at position 1 in buffer Blog.org<2>
I could not find any way to fix this - any help will be very appreciated.
Thank you,Joon
 		 	   		   		 	   		  

[-- Attachment #2: Type: text/html, Size: 2276 bytes --]

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

end of thread, other threads:[~2015-04-26 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26 19:35 export fails with "byte-code: Before first headline at position ..." Joon Ro
2015-04-26 21:00 ` Rasmus
2015-04-26 21:13 ` Joon Ro

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