From mboxrd@z Thu Jan 1 00:00:00 1970 From: KDr2 Subject: Re: #+INCLUDE: file in code block results does not work? Date: Wed, 26 Mar 2014 19:54:25 +0800 Message-ID: References: <87wqfhuwtp.fsf@gmail.com> <87siq5uwic.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01160dca806dec04f58122c9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSmPv-0003uF-5T for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 07:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSmPu-0008NC-6K for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 07:54:47 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:50591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSmPu-0008N7-16 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 07:54:46 -0400 Received: by mail-oa0-f41.google.com with SMTP id j17so2357463oag.14 for ; Wed, 26 Mar 2014 04:54:45 -0700 (PDT) In-Reply-To: <87siq5uwic.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --089e01160dca806dec04f58122c9 Content-Type: text/plain; charset=ISO-8859-1 Thanks very much. I use dynamic block now, by adding `org-update-all-dblocks' to `org-export-before-processing-hook'. On Wed, Mar 26, 2014 at 5:42 PM, Nicolas Goaziou wrote: > Nicolas Goaziou writes: > > > You can use a macro here: > > > > #+MACRO: inc-file #+INCLUDE: /path/to-include-dir/$1 > > > > {{{inc-file(a.org)}}} > > Err, no. Macros are also expanded after INCLUDE keywords. The only code > executed before these are handled is > `org-export-before-processing-hook'. > -- -- KDr2, http://kdr2.com --089e01160dca806dec04f58122c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks very much.

I use dynamic block n= ow, by adding `org-update-all-dblocks' to=A0`org-export-before-processing-hook'.


On Wed,= Mar 26, 2014 at 5:42 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
Nicolas Goaziou <n.goaziou@gmail.com> writes:

> You can use a macro here:
>
> =A0 #+MACRO: inc-file #+INCLUDE: /path/to-include-dir/$1
>
> =A0 {{{inc-file(a.org)}= }}

Err, no. Macros are also expanded after INCLUDE keywords. The only co= de
executed before these are handled is
`org-export-before-processing-hook'.



--
--=A0

KDr2, http://kdr2.com
--089e01160dca806dec04f58122c9--