From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Code block option :results raw does not replace #+RESULTS Date: Fri, 31 Jan 2014 15:54:05 -0600 Message-ID: References: <1391187052.2534.12.camel@raven-CM5571> <1391204719.2534.23.camel@raven-CM5571> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9M2M-0006sI-3t for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:54:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9M2I-0004iJ-HD for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:54:10 -0500 Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:61250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9M2I-0004iF-CD for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:54:06 -0500 Received: by mail-oa0-f51.google.com with SMTP id h16so5869006oag.38 for ; Fri, 31 Jan 2014 13:54:05 -0800 (PST) In-Reply-To: <1391204719.2534.23.camel@raven-CM5571> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Soapy Smith Cc: emacs-orgmode On Fri, Jan 31, 2014 at 3:45 PM, Soapy Smith wrote: > Hello- > > Here is an example Python code block: > > #+begin_src python :results value raw > a = (1, 2, 3, 4) > return a > #+end_src > > #+RESULTS: > (1, 2, 3, 4) > (1, 2, 3, 4) > > The #+RESULT block above is after 2 evaluations. > The default behavior of "replace" is not happening. The result "stack" > will continue to grow with additional evaluations. > I was going to suggest using a #+name line above #+begin_src... but with :results value raw, I was getting the same behavior. With :results output, it works properly when I replace =return a= with =print(a)=. Does =output= not work for you, requiring =value raw= (at least thinking it could help you in the immediate future). Someone else will need to chime in on the behavior of =value raw= #+begin_src python :results output a = (1, 2, 3, 4) print(a) #+end_src #+RESULTS: : (1, 2, 3, 4) I can C-c C-c on that block repeatedly and it does not grow. John John > I also confirmed the same behavior with a Clojure code block. > > Is this the expected behavior for this option? > > Regards, > Greg > >