From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)] Date: Mon, 16 Nov 2009 09:28:51 -0700 Message-ID: References: <4B01614B.5060200@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA4Rp-0007TH-Q3 for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 11:29:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA4Rm-0007SI-5H for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 11:29:01 -0500 Received: from [199.232.76.173] (port=42928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA4Rl-0007SF-PO for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 11:28:57 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:62210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA4Rl-0007ru-7R for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 11:28:57 -0500 Received: by pwi9 with SMTP id 9so3620099pwi.26 for ; Mon, 16 Nov 2009 08:28:56 -0800 (PST) In-Reply-To: <4B01614B.5060200@ifi.uio.no> ("Martin G. =?utf-8?Q?Skj=C3=A6?= =?utf-8?Q?veland=22's?= message of "Mon, 16 Nov 2009 15:27:23 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Martin_G=2E_Skj=C3=A6veland?= Cc: emacs-orgmode@gnu.org 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=C3=A6veland" 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 > =3D=3D=3D=3D=3D=3D > echo "test 1" > > 1.2 2 > =3D=3D=3D=3D=3D=3D > echo "test 2" > > > test 2 > > 1.3 3 > =3D=3D=3D=3D=3D=3D > > 1.4 4 > =3D=3D=3D=3D=3D=3D > > 1.5 5 > =3D=3D=3D=3D=3D=3D > 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (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 "\\" > 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