Tony Day <zygom...@gmail.com> 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