From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] Re: Can't export LaTeX source code blocks Date: Mon, 06 May 2013 16:32:52 -0400 Message-ID: <87obcnvogb.fsf@gmail.com> References: <86obd67427.fsf@somewhere.org> <87zjwqb9wd.fsf@gmail.com> <867gju6xyd.fsf@somewhere.org> <86ip38xriz.fsf@somewhere.org> <86bo90xq6y.fsf_-_@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZS5o-0003B2-4w for emacs-orgmode@gnu.org; Mon, 06 May 2013 16:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZS5j-0001nF-7y for emacs-orgmode@gnu.org; Mon, 06 May 2013 16:33:04 -0400 Received: from mail-qe0-f46.google.com ([209.85.128.46]:34439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZS5j-0001n7-2y for emacs-orgmode@gnu.org; Mon, 06 May 2013 16:32:59 -0400 Received: by mail-qe0-f46.google.com with SMTP id f6so2322094qej.19 for ; Mon, 06 May 2013 13:32:58 -0700 (PDT) In-Reply-To: <86bo90xq6y.fsf_-_@somewhere.org> (Sebastien Vauban's message of "Sat, 27 Apr 2013 11:45: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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > "Sebastien Vauban" wrote: >> Thomas S. Dye wrote: >>> "Sebastien Vauban" writes: >>> >>>>>> The code block is NEVER exported. I don't understand why? >>>>> >>>>> I'm not sure either. >>> >>> I took a quick look at ob-latex.el. The code there sets `:exports >>> results' and then, IIUC, goes on its way without checking if :exports >>> has been set in the buffer. >>> >>> It looks to me like ob-latex.el would need to be revised. >> >> I don't have the impression that the error lies in `ob-latex' as the other >> `ob-LANG' files don't either make any special check -- while all graphics-only >> languages do, as well, have the default of "results" for ":exports". >> >> I have the impression the problem is to search in `ob-core' >> (`org-babel-execute-src-block') or `ob-exp'... But that's not yet clear to me >> where that could be. > > I think I found it. That was a priority order problem for implementing the > hierarchy of header arguments inheritage in `ob-core'. > Applied, Thanks! > > Best regards, > Seb > > From 3339c0f7d296fc68a206b0f69270da3a91025840 Mon Sep 17 00:00:00 2001 > From: Sebastien Vauban > Date: Sat, 27 Apr 2013 11:40:25 +0200 > Subject: [PATCH 2/2] Fix priority order for inheriting header arguments > > * ob-core.el (org-babel-parse-src-block-match): Fix order of list of header > arguments. > > --- > lisp/ob-core.el | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lisp/ob-core.el b/lisp/ob-core.el > index 9baff0c..73dca8f 100644 > --- a/lisp/ob-core.el > +++ b/lisp/ob-core.el > @@ -1,6 +1,6 @@ > ;;; ob-core.el --- working with code blocks in org-mode > > -;; Copyright (C) 2009-2012 Free Software Foundation, Inc. > +;; Copyright (C) 2009-2013 Free Software Foundation, Inc. > > ;; Authors: Eric Schulte > ;; Dan Davison > @@ -1323,8 +1323,8 @@ may be specified in the properties of the current outline entry." > (buffer-string))) > (org-babel-merge-params > org-babel-default-header-args > - (org-babel-params-from-properties lang) > (if (boundp lang-headers) (eval lang-headers) nil) > + (org-babel-params-from-properties lang) > (org-babel-parse-header-arguments > (org-no-properties (or (match-string 4) "")))) > switches > -- > 1.7.9 -- Eric Schulte http://cs.unm.edu/~eschulte