[Top][All Lists]

[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,
> * other file header
> :END:
> Contents of the other file.
> Is this the intended behaviour? 


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


reply via email to

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