* [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)]
@ 2009-11-16 14:27 "Martin G. Skjæveland"
2009-11-16 16:28 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: "Martin G. Skjæveland" @ 2009-11-16 14:27 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
Hi,
I pulled a fresh version of org-mode today and have some problems
including source block results in my export.
When I export the file
-------------------------------------start
* testing 123
** 1
#+begin_src sh
echo "test 1"
#+end_src
** 2
#+begin_src sh :results output
echo "test 2"
#+end_src
** 3
#+begin_src sh :exports results
echo "test 3"
#+end_src
** 4
#+begin_src sh :results output :exports results
echo "test 4"
#+end_src
** 5
#+begin_src sh :results output :exports both
echo "test 5"
#+end_src
-------------------------------------end
it gives me
-------------------------------------start
1 testing 123
~~~~~~~~~~~~~~
1.1 1
======
echo "test 1"
1.2 2
======
echo "test 2"
test 2
1.3 3
======
1.4 4
======
1.5 5
======
echo "test 5"
-------------------------------------end
The result is only exported in test no. 2. I have written my source
blocks in the same format as test no. 4, which before the weekend gave
me only the results of the source block execution in the export.
A perhaps related issue is that when I try to export my working document
I get the error
Symbol's function definition is void: org-babel-execute:xml :
Exporting to PDF...
Exporting to LaTeX...
(New file)
org-babel-exp processing... [21 times]
funcall: Symbol's function definition is void: org-babel-execute:xml
I have added xml with
(org-babel-add-interpreter "xml")
(add-to-list 'org-babel-tangle-langs '("xml" "xml" nil t))
This error did not appear before the upgrade I did today.
I hope this report is clear.
Thanks!
Martin
Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.33trans (release_6.33c.7.g69b46)
current state:
==============
(setq
org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-babel-interpreters '("n3" "xml" "java" "python" "dot" "sh"
"emacs-lisp")
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all
append local]
5]
)
org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
org-babel-execute-src-block-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners)
(src org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp "\\<Martin G\\. Skjæveland\\>"
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-blocks nil)
(comment org-export-blocks-format-comment t)
(ditaa org-export-blocks-format-ditaa nil)
(dot org-export-blocks-format-dot nil))
)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)]
2009-11-16 14:27 [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)] "Martin G. Skjæveland"
@ 2009-11-16 16:28 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2009-11-16 16:28 UTC (permalink / raw)
To: Martin G. Skjæveland; +Cc: emacs-orgmode
Hi Martin,
Thanks for the bug report. It appears that the issue was related to
searching backwards to the previous source-code block before block
evaluation. Our many results types present no short supply of potential
red herrings.
I just pushed up a fix to this issue, please let me know if you continue
to have problems.
Best -- Eric
"Martin G. Skjæveland" <martige@ifi.uio.no> writes:
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen. You don't know how to make a good report? See
>
> http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> Hi,
>
> I pulled a fresh version of org-mode today and have some problems
> including source block results in my export.
>
> When I export the file
>
> -------------------------------------start
> * testing 123
> ** 1
> #+begin_src sh
> echo "test 1"
> #+end_src
> ** 2
> #+begin_src sh :results output
> echo "test 2"
> #+end_src
> ** 3
> #+begin_src sh :exports results
> echo "test 3"
> #+end_src
> ** 4
> #+begin_src sh :results output :exports results
> echo "test 4"
> #+end_src
> ** 5
> #+begin_src sh :results output :exports both
> echo "test 5"
> #+end_src
> -------------------------------------end
>
> it gives me
>
> -------------------------------------start
> 1 testing 123
> ~~~~~~~~~~~~~~
>
> 1.1 1
> ======
> echo "test 1"
>
> 1.2 2
> ======
> echo "test 2"
>
>
> test 2
>
> 1.3 3
> ======
>
> 1.4 4
> ======
>
> 1.5 5
> ======
> echo "test 5"
> -------------------------------------end
>
>
> The result is only exported in test no. 2. I have written my source
> blocks in the same format as test no. 4, which before the weekend gave
> me only the results of the source block execution in the export.
>
>
> A perhaps related issue is that when I try to export my working document
> I get the error
>
> Symbol's function definition is void: org-babel-execute:xml :
>
> Exporting to PDF...
> Exporting to LaTeX...
> (New file)
> org-babel-exp processing... [21 times]
> funcall: Symbol's function definition is void: org-babel-execute:xml
>
> I have added xml with
>
> (org-babel-add-interpreter "xml")
> (add-to-list 'org-babel-tangle-langs '("xml" "xml" nil t))
>
> This error did not appear before the upgrade I did today.
>
> I hope this report is clear.
>
> Thanks!
> Martin
>
>
> Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
> of 2009-09-27 on palmer, modified by Debian
> Package: Org-mode version 6.33trans (release_6.33c.7.g69b46)
>
> current state:
> ==============
> (setq
> org-metaup-hook '(org-babel-load-in-session-maybe)
> org-after-todo-state-change-hook '(org-clock-out-if-current)
> org-babel-interpreters '("n3" "xml" "java" "python" "dot" "sh"
> "emacs-lisp")
> org-export-preprocess-hook '(org-export-blocks-preprocess)
> org-tab-first-hook '(org-hide-block-toggle-maybe)
> org-src-mode-hook '(org-src-mode-configure-edit-buffer)
> org-confirm-shell-link-function 'yes-or-no-p
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> org-cycle-show-empty-lines
> org-optimize-window-after-visibility-change)
> org-mode-hook '(#[nil "\300\301\302\303\304$\207"
> [org-add-hook change-major-mode-hook org-show-block-all
> append local]
> 5]
> )
> org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
> org-babel-execute-src-block-maybe)
> org-confirm-elisp-link-function 'yes-or-no-p
> org-export-interblocks '((lob org-babel-exp-lob-one-liners)
> (src org-babel-exp-inline-src-blocks))
> org-occur-hook '(org-first-headline-recenter)
> org-from-is-user-regexp "\\<Martin G\\. Skjæveland\\>"
> org-metadown-hook '(org-babel-pop-to-session-maybe)
> org-export-blocks '((src org-babel-exp-src-blocks nil)
> (comment org-export-blocks-format-comment t)
> (ditaa org-export-blocks-format-ditaa nil)
> (dot org-export-blocks-format-dot nil))
> )
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-16 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 14:27 [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)] "Martin G. Skjæveland"
2009-11-16 16:28 ` Eric Schulte
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).