From 425b53146b99b1dd9b9b5d9b96e950dfea81835c Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sun, 1 Jun 2014 09:49:48 +0200 Subject: [PATCH] ox: implement "wrap" for #+INCLUDE * lisp/ox.el (org-export-expand-include-keyword): Implement additional "wrap" parameter for including files literally, wrapped in an appropriate block (usually an export block). The contents of the file gets included literally. This is experimental, the documentation and testing for this feature is missing! --- lisp/ox.el | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index be843e6..26d2a9e 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -3305,9 +3305,10 @@ (defun org-export-expand-include-keyword (&optional included dir) value) (prog1 (match-string 1 value) (setq value (replace-match "" nil nil value))))) - (env (cond ((string-match "\\" value) 'example) - ((string-match "\\" value) 'example) + ((string-match "\\