From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: result of code evaluation
Date: Fri, 19 Aug 2011 22:00:52 +0200 [thread overview]
Message-ID: <80pqk1npcb.fsf@somewhere.org> (raw)
In-Reply-To: CAG_r7O651-t_J3Q-PqAD3VEz3sOVB4Mm+CV6pWqyF+VxErhpGA@mail.gmail.com
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
next prev parent reply other threads:[~2011-08-19 20:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-19 19:06 result of code evaluation Henri-Paul Indiogine
2011-08-19 20:00 ` Sebastien Vauban [this message]
2011-08-19 20:10 ` Henri-Paul Indiogine
2011-08-19 20:20 ` Sebastien Vauban
2011-08-19 22:08 ` Henri-Paul Indiogine
2011-08-21 18:14 ` Eric Schulte
[not found] <4E4EC0F1.5070809@ymail.com>
2011-08-19 20:02 ` iminet
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=80pqk1npcb.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).