From: "Myles English" <mylesenglish@gmail.com>
To: Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: Re: [new exporter] two unexpected behaviours of an #+INCLUDEd #+call
Date: Mon, 22 Oct 2012 13:10:50 +0100 [thread overview]
Message-ID: <878vaybtbp.fsf@ed.ac.uk> (raw)
In-Reply-To: <87bofzrf85.fsf@ed.ac.uk>
Myles English writes:
> Hi,
>
> I think there is a bug here.
Just adding some evidence: similar behaviour was reported in this
thread:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg00634.html
Myles
>
>
> 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()
>
> #----------------------------------------------------
>
> 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):
>
> (setq org-confirm-babel-evaluate nil)
> (setq org-export-babel-evaluate t)
>
> This is with Org-mode version 7.9.2 (release_7.9.2-454-g949709 @
> /home/myles/.emacs.d/plugins/org-mode/lisp/).
>
> Thanks,
>
> Myles
next prev parent reply other threads:[~2012-10-22 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 15:07 [new exporter] two unexpected behaviours of an #+INCLUDEd #+call Myles English
2012-10-22 12:10 ` Myles English [this message]
2012-10-22 17:04 ` Nicolas Goaziou
2012-10-28 15:27 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vaybtbp.fsf@ed.ac.uk \
--to=mylesenglish@gmail.com \
--cc=Emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).