From mboxrd@z Thu Jan 1 00:00:00 1970 From: KDr2 Subject: #+INCLUDE: file in code block results does not work? Date: Wed, 26 Mar 2014 15:48:59 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134aa02c74b0904f57db423 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSiaR-0006I7-SJ for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 03:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSiaO-0006XA-ME for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 03:49:23 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:49310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSiaO-0006X4-Gc for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 03:49:20 -0400 Received: by mail-oa0-f41.google.com with SMTP id j17so2087654oag.0 for ; Wed, 26 Mar 2014 00:49:19 -0700 (PDT) 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: emacs-orgmode@gnu.org --001a1134aa02c74b0904f57db423 Content-Type: text/plain; charset=ISO-8859-1 I wrote a piece of code like below: #+NAME: inc-file #+BEGIN_SRC elisp :results value raw :exports results :var file=" common.inc.org" (concat "#+INCLUDE: /path/to/include-dir/" file) ;; path is cal-ed from path of current-buffer file #+END_SRC #+CALL: inc-file(file="a.org") :results raw but this does not work, anyone knows why? By the way, #+HTML_HEAD in code block results works well: #+NAME: d-header #+BEGIN_SRC elisp :results value raw :exports results (concat "#+HTML_HEAD: ") #+END_SRC #+CALL: d-header() :results raw Thanks. -- -- KDr2, http://kdr2.com --001a1134aa02c74b0904f57db423 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --001a1134aa02c74b0904f57db423--