Re: [O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call
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
Re: [O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call
Hello, "Myles English" writes: > Just adding some evidence: similar behaviour was reported in this > thread: > > http://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg00634.html Yes, I'm working on it on my spare time but it requires some modifications to Babel core, so I'm advancing slowly. Thanks for the report, btw. Regards, -- Nicolas Goaziou
Re: [O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call
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
[O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call
Hi, I think there is a bug here. 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