emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [bug] [babel] results eat up following text
Date: Sat, 29 Jan 2011 08:42:44 -0700	[thread overview]
Message-ID: <87wrln1zt7.fsf@gmail.com> (raw)
In-Reply-To: <87mxmk93f9.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 28 Jan 2011 20:30:34 +0000")

Hi Eric,

Thanks for catching this issue.  It turns out this was a result of
adding lists as supported output types, the code block thinks that the
enclosing list is the results list, and deletes it before inserting new
results.

Luckily this was a quick 2-character change, which has been committed.

Cheers -- Eric

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello,
>
> please see attached file for a simple example of a bug in babel: if you
> execute the code block, the results section overwrites the text that
> follows the code block.
>
> If you insert an extra blank line between the end of the code block and
> the text that follows (before executing the block for the first time),
> the results will *not* overwrite the text *but* if you then execute the
> block again, the text will be overwritten.
>
> My feeling is that there's some interplay between lists (I use the 'both
> org-list-ending-method) and babel.  I've no idea otherwise what is
> happening unfortunately.  
>
> I can send my full configuration if need be but always prefer not to as
> I have to spend time obfuscating a number of things...
>
> Thanks,
> eric
>
> # -*- coding: utf-8; -*-
> #+TITLE:     examplebug.org
> #+AUTHOR:    Eric S Fraga
> #+EMAIL:     e.fraga@ucl.ac.uk
>
> * babel results overwrite following text 
>
>   - start an item so that following is indented:
>
>     #+begin_src octave :var x=10
> 3*x+5
>     #+end_src
>
>     This is some text that follows the code.

  reply	other threads:[~2011-01-29 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 20:30 [bug] [babel] results eat up following text Eric S Fraga
2011-01-29 15:42 ` Eric Schulte [this message]
2011-01-29 21:51   ` Eric S Fraga
2011-01-30 14:33   ` [babel] Feature request, was " Eric S Fraga

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=87wrln1zt7.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).