From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: #+INCLUDE: myfile.html html does not include /literally/; Org processes Date: Sun, 01 Jun 2014 09:53:58 +0200 Message-ID: <8761kl12w9.fsf@Rainer.invalid> References: <538AA6B8.40604@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wr0aw-0008ES-LF for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 03:54:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wr0aq-0002QX-Qa for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 03:54:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:55515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wr0aq-0002QQ-JY for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 03:54:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wr0an-00025E-QW for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 09:54:09 +0200 Received: from pd9eb0909.dip0.t-ipconnect.de ([217.235.9.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jun 2014 09:54:09 +0200 Received: from Stromeko by pd9eb0909.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jun 2014 09:54:09 +0200 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 --=-=-= Content-Type: text/plain Omid writes: > I am trying to include an HTML file (say myfile.html, which has only > the ) in an Org file so that upon export the contents of > myfile.html are /literally/ inserted in the appropriate section of the > exported HTML file. That's not yet possible. The following patch would implement it, but I guess there are a few things that need to be discussed before this gets official, if at all. I haven't given it much testing either. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ox-implement-wrap-for-INCLUDE.patch >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 "\\+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada --=-=-=--