emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tobias Getzner <tobias.getzner@gmx.de>
To: emacs-orgmode@gnu.org
Subject: [Bug?] Results of code block printed in wrong place
Date: Mon, 22 Sep 2014 13:26:04 +0000 (UTC)	[thread overview]
Message-ID: <lvp81c$753$1@ger.gmane.org> (raw)

Hello,

I have a strange problem when exporting the following file:

* heading 1
#+BEGIN_SRC sh :eval never
echo baz
#+END_SRC

* heading 2
#+BEGIN_SRC sh :exports results
echo quux
#+END_SRC

When I export this document, and point is on heading 1 when issuing the
«C-c C-e», the results of the code in heading 2 are added under the code
block in heading 1 (sic). o_O So I am seeing:

* heading 1
#+BEGIN_SRC sh :eval never
echo baz
#+END_SRC

#+RESULTS:
: quux

When point is at heading 2 when issuing «C-c C-e» (or when doing a manual
eval), the results are as expected.

When point is after #+END_SRC of heading 2 when issuing the export, I’m
also seeing that the results are now suddenly added inline:

* heading 2
#+BEGIN_SRC sh :exports results
echo quux
#+END_SRC=quux
=

Additionally, the results of the code are not actually exported until I
run the export a second time; I’m not sure whether this is the expected
behavior. Should the export already take into account any results produced
during the export run?

Any ideas where to look or what the problem might be?

Best,
T.

Org-mode version 8.2.7c (8.2.7c-71-g60418c-elpa @ /home/tzg/.emacs.d/elpa/
org-20140922/)

             reply	other threads:[~2014-09-22 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 13:26 Tobias Getzner [this message]
2014-09-22 15:29 ` [Bug?] Results of code block printed in wrong place Nicolas Goaziou
2014-09-23  8:22   ` Tobias Getzner
2014-09-23  9:58     ` Tobias Getzner
2014-09-23 18:32     ` Aaron Ecay
2014-09-24 11:41       ` Tobias Getzner

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='lvp81c$753$1@ger.gmane.org' \
    --to=tobias.getzner@gmx.de \
    --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).