From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: result of code evaluation Date: Fri, 19 Aug 2011 22:00:52 +0200 Message-ID: <80pqk1npcb.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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