From: Nick Dokos <nicholas.dokos@hp.com>
To: Tony Day <zygomega@gmail.com>
Cc: "emacs-orgmode@gnu.org org" <emacs-orgmode@gnu.org>
Subject: Re: org-export-handle-include-files
Date: Sat, 08 Dec 2012 10:24:06 -0500 [thread overview]
Message-ID: <6494.1354980246@alphaville> (raw)
In-Reply-To: Message from Tony Day <zygomega@gmail.com> of "Sat, 08 Dec 2012 15:08:16 +1100." <031D6BA7-0AF1-4214-869A-99B7CA8F861B@gmail.com>
Tony Day <zygomega@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
next prev parent reply other threads:[~2012-12-08 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 4:08 org-export-handle-include-files Tony Day
2012-12-08 15:24 ` Nick Dokos [this message]
2012-12-08 23:24 ` org-export-handle-include-files Tony Day
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6494.1354980246@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=zygomega@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.