From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: tentative patch Re: commit found, was: Re: ECM for: issues with publishing to LaTeX using #INCLUDE Date: Fri, 19 Jun 2015 20:28:59 +0200 Message-ID: <20150619202859.48888231@zotac> References: <20150617.200443.1764368968080794485.roklein@roklein.de> <20150618085813.1630b824@pckr150.mpip-mainz.mpg.de> <20150618091550.57e2553f@pckr150.mpip-mainz.mpg.de> <20150618092142.6257f8f6@pckr150.mpip-mainz.mpg.de> <87ioal78nv.fsf@selenimh.access.network> <20150618142142.639189af@pckr150.mpip-mainz.mpg.de> <20150618205110.6ce38bf5@zotac> <20150619095140.3c6e8892@pckr150.mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/JR/rab1Djj9Mv.BCbmSiq/r" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z612G-0007oz-Ss for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 14:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z612D-0000p8-Jd for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 14:29:04 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:63247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z612D-0000or-9X for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 14:29:01 -0400 In-Reply-To: <20150619095140.3c6e8892@pckr150.mpip-mainz.mpg.de> 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 --MP_/JR/rab1Djj9Mv.BCbmSiq/r Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, when I change a `symbol-value' in the commit back to `eval', export seems to work again. Patch is attached. Best regards Robert On Fri, 19 Jun 2015 09:51:40 +0200 Robert Klein wrote: > Hello, > > the first commit that doesn't work as expected is > > e900ebed08c444ad2813060195e9ece7f6bd910b > "ob-core: Small refactoring" > > from Wednesday morning. > > > Best regards > Robert > > On Thu, 18 Jun 2015 20:51:10 +0200 > Robert Klein wrote: > > > Hello, > > > > now I've narrowed the org file(s) down to > > > > --- snip --- > > #+TITLE: Frequently Asked Questions > > > > #+name: docinfo > > #+begin_src elisp :exports none > > (let ((props (org-export-get-environment))) > > (concat "#+LaTeX_HEADER: \\newcommand{\\myTitle}{" > > (org-element-interpret-data > > (plist-get props :title)) > > "}\n")) > > #+end_src > > > > #+CALL: docinfo() :exports results :results raw > > > > #+LaTeX_CLASS: scrartcl > > #+LaTeX_CLASS_OPTIONS: [11pt] > > #+OPTIONS: email:t > > > > * Headline > > Some Text > > --- snip --- > > > > I tried toc:t, toc:nil and email:t as options. > > > > The sequence CALL, LaTeX_CLASS, LaTeX_CLASS_OPTIONS, OPTIONS seems > > to be important. Publishing the example looks Ok when I use the > > following sequences: > > > > - CALL, LaTeX_CLASS_OPTIONS, LaTeX_CLASS, OPTIONS > > - CALL, LaTeX_CLASS_OPTIONS, OPTIONS, LaTeX_CLASS > > - CALL, OPTIONS, LaTeX_CLASS_OPTIONS, LaTeX_CLASS > > > > Best regards > > Robert > > > > > > On Thu, 18 Jun 2015 14:21:42 +0200 > > Robert Klein wrote: > > > > > On Thu, 18 Jun 2015 09:55:16 +0200 > > > Nicolas Goaziou wrote: > > > > > > Hello, > > > > > > thank you very much for your effort! > > > > > > I boiled it down further and now don't even need an #include to > > > see this issues. Using the same .emacs as in the earlier mail and > > > having three org files 1.org, 2.org, and 3.org all having the same > > > contents: > > > > > > --- snip --- > > > #+TITLE: Frequently Asked Questions > > > > > > #+OPTIONS: toc:nil author:t ^:t creator:nil email:t tex:t > > > > > > #+name: docinfo > > > #+begin_src elisp :exports none > > > (let ((props (org-export-get-environment))) > > > (concat "#+LaTeX_HEADER: \\newcommand{\\myTitle}{" > > > (org-element-interpret-data > > > (plist-get props :title)) > > > "}\n")) > > > #+end_src > > > > > > #+CALL: docinfo() :exports results :results raw > > > > > > #+LaTeX_CLASS: scrartcl > > > #+LaTeX_CLASS_OPTIONS: [11pt, a4paper, twoside, notitlepage, > > > headsepline, headings=normal, DIV=12, BCOR=12mm] > > > #+OPTIONS: toc:t > > > > > > * Headline > > > Some Text > > > > > > --- snip --- > > > > > > > > > I also get the first file in the publishing process exports Ok, > > > the rest is not Ok. > > > > > > When I delete the LaTeX_CLASS_OPTIONS line the whole project > > > publishes without issues. > > > > > > The same happens when I delete the "#+Options: toc:t" line below > > > the class options line. > > > > > > Best regards > > > Robert > > > > > > > > > > > > > > > > Hello, > > > > > > > > Robert Klein writes: > > > > > > > > > On Thu, 18 Jun 2015 09:15:50 +0200 > > > > > Robert Klein wrote: > > > > > > > > > > > > > > >> The file exported first exports Ok, the others don't. > > > > > > > > > > Sorry, the file _published_ first exports Ok, the others not. > > > > > > > > > > For the ECM I export w/ org-publish-project. > > > > > > > > Thanks for the ECM. I will investigate by the end of the week. > > > > Do not hesitate to post any additional information. > > > > > > > > Regards, > > > > > > > > > > > > > > > > --MP_/JR/rab1Djj9Mv.BCbmSiq/r Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-fix-e900ebed08c444ad2813060195e9ece7f6bd910b.patch >From 388e768878cfd48c612dd2279ac8b8356533da4c Mon Sep 17 00:00:00 2001 From: Robert Klein Date: Fri, 19 Jun 2015 20:18:39 +0200 Subject: [PATCH] fix e900ebed08c444ad2813060195e9ece7f6bd910b * lisp/ob-core.el (org-babel-params-from-properties): Using symbol-value on sym instead of eval breaks export. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index ae79fe6..862327a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1422,7 +1422,7 @@ specified in the properties of the current outline entry." (org-babel-combine-header-arg-lists org-babel-common-header-args-w-values (let ((sym (intern (concat "org-babel-header-args:" lang)))) - (and (boundp sym) (symbol-value sym))))))) + (and (boundp sym) (eval sym))))))) ;; header arguments specified with the header-args property at ;; point of call. (org-babel-parse-header-arguments -- 2.4.3 --MP_/JR/rab1Djj9Mv.BCbmSiq/r--