From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Steffen Subject: #+include: with ``adjustable'' path (separately defined, like macro expansion) Date: Sat, 14 Nov 2015 07:31:51 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxVJd-00054C-3s for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 02:32:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxVJZ-0001J6-UX for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 02:32:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:55568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxVJZ-0001J0-O2 for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 02:32:01 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZxVJX-0000iI-SG for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 08:31:59 +0100 Received: from cm-84.215.65.209.getinternet.no ([84.215.65.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Nov 2015 08:31:59 +0100 Received: from msteffen by cm-84.215.65.209.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Nov 2015 08:31:59 +0100 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 Hi, I'd like to achieve something like the following (which does not work) #+MACRO: custompath ~/some/place/where/the/code/resides #+include: "{{{custompath}}}src/example.code" Macro-expansion generally works, but not in those circumstances. I also seens that there's the #+LINK: customurl which conceptually does such macro expansion but it seems intended for linking in stuff, not for "embedding" pieces of code. Is there a way to achieve what I want, which I overlooked? Thanks, Martin