emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] result of code evaluation


From: Sebastien Vauban
Subject: Re: [O] result of code evaluation
Date: Fri, 19 Aug 2011 22:00:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Henri-Paul,

Henri-Paul Indiogine wrote:
> Greetings!
>
> I am just now starting to use babel in my org-mode files.  I am
> intrigued by its capabilities, but I encountered a strange phenomenon:
>
> --------8<------------------------------->8-------------
> #+srcname: test
> #+begin_src sh :results value
> #!/bin/bash
>
> echo "hello"
>
> #+end_src
>
> #+results: test
> : hello
> -------8<--------------------------------->8------------
>
> Why is there a ":" at the beginning of the results line?

Its purpose is to delimit the result block. Imagine you re-eval the code
block, and that (by default, BTW) the result block must be overridden by the
new value, Babel must have a way to identify what to delete first.

> Can I get rid of it?

The only other solutions are:

- use the option =:results raw=, but you can't do any replace anymore (of old
  results by new results)

- =(setq org-babel-min-lines-for-block-output 1)=, to force Org to put the
  output enclosed in a #+begin/end_example block.

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]