From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] two unexpected behaviours of an #+INCLUDEd #+call Date: Sun, 28 Oct 2012 16:27:07 +0100 Message-ID: <87zk36r510.fsf@gmail.com> References: <87bofzrf85.fsf@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUoX-0003n0-5K for Emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:30:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSUoV-0005JJ-MQ for Emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:30:13 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:52508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUoV-0005I6-Fu for Emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:30:11 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so2331997wgb.30 for ; Sun, 28 Oct 2012 08:30:10 -0700 (PDT) In-Reply-To: <87bofzrf85.fsf@ed.ac.uk> (Myles English's message of "Thu, 18 Oct 2012 16:07:22 +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: Myles English Cc: Emacs-orgmode Hello, "Myles English" writes: > Given the situation below, I would expect that the block named xxx > would never be evaluated: > > #--------------------- file b.org ------------------- > #+TITLE: b.org > #+EXPORT_SELECT_TAGS: export > #+EXPORT_EXCLUDE_TAGS: noexport > > * A heading :noexport: > > #+INCLUDE: "c.org" > > #--------------------- file c.org ------------------- > * A Heading in c.org > #+name: xxx > #+BEGIN_SRC sh > echo "Evaluated" > c.out #+END_SRC > > #+call: xxx() > > #---------------------------------------------------- :noexport: doesn't mean Babel blocks within shouldn't be evaluated. It just means contents will eventually be ignored. > And maybe it isn't evaluated but the call is still processed to some > extent upon latex export: > > #+BEGIN_SRC sh :shebang "#!/usr/bin/env bash" :tangle eval_bug.sh > emacs -Q --batch --eval "(progn > (add-to-list 'load-path > (expand-file-name \"./lisp/\")) > (add-to-list 'load-path > (expand-file-name \"./contrib/lisp/\" t)) > (require 'org-e-latex) > (org-babel-do-load-languages > 'org-babel-load-languages > '((sh . t))) > (find-file \"b.org\") > (org-e-latex-export-to-latex))" > #+END_SRC > > $ ./eval_bug.sh > Loading /home/myles/.emacs.d/plugins/org-mode/lisp/org-loaddefs.el (source)... > OVERVIEW > Loading vc-git... > OVERVIEW > OVERVIEW > Reference 'xxx' not found in this buffer > > Removing the :noexport: results in the same message as above, removing > the #+call causes c.org to be included but even adding these line to the > batch function above will not cause the block to be evaluated > (i.e. there is no c.out written): This should be fixed in master. Thank you for the report. Regards, -- Nicolas Goaziou