emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-export-handle-include-files


From: Nick Dokos
Subject: Re: [O] org-export-handle-include-files
Date: Sat, 08 Dec 2012 10:24:06 -0500

Tony Day <address@hidden> wrote:

> In the current buffer, org-export-handle-include-file overwrites:
> 
> #+INCLUDE: "./some-other-file.org"
> 
> with contents of the other file. For example,
> 
> #+BEGIN_EXAMPLE
> * other file header
> :PROPERTIES:
> :OTHER_PROPS: yes
> :END:
> 
> Contents of the other file.
> 
> #+END_EXAMPLE
> 
> Is this the intended behaviour? 

Yes.

> Is there a method where you can use 
> #+INCLUDE without overwriting the current buffer?
> 

You can do what org-export-preprocess-string does: create a temp
buffer, insert the contents of the original buffer and call
org-export-handle-include-files (or
org-export-handle-include-files-recurse) in that buffer.

Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]