From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: odd behavior for begin_src org :results Date: Wed, 01 May 2013 14:01:12 -0600 Message-ID: <87k3ni4ghj.fsf@gmail.com> References: <18696.1367435308@greg-minshalls-mbp.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXdDN-0002kB-Mu for emacs-orgmode@gnu.org; Wed, 01 May 2013 16:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXdDM-0007bU-5o for emacs-orgmode@gnu.org; Wed, 01 May 2013 16:01:21 -0400 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]:56226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXdDL-0007bC-VV for emacs-orgmode@gnu.org; Wed, 01 May 2013 16:01:20 -0400 Received: by mail-pb0-f47.google.com with SMTP id uo1so875031pbc.6 for ; Wed, 01 May 2013 13:01:19 -0700 (PDT) In-Reply-To: <18696.1367435308@greg-minshalls-mbp.local> (Greg Minshall's message of "Wed, 01 May 2013 15:08:28 -0400") 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: Greg Minshall Cc: emacs-orgmode@gnu.org Greg Minshall writes: > Org-mode version 8.0.1 (release_8.0.1-42-g267cbe @ /Users/minshall/usr/share/emacs/site-lisp/org/) > > hi. the following produces #+RESULTS: > ---- > #+begin_src org :results replace > hello > #+end_src > ---- > but, repeated evaluations seem to grow the list of results. e.g., after > four evaluations: > ---- > #+RESULTS: > hello > hello > hello > hello > ---- > Yes, this is the behavior of raw results. > > the following does not produce #+RESULTS at all: > ---- > #+begin_src org > hello > #+end_src > ---- > > is this intended behavior? This is the intended behavior for Org-mode blocks, it is not the intended behavior in general. > the code thinks so; ob-org.el has: > ---- > (defvar org-babel-default-header-args:org > '((:results . "raw silent") (:exports . "code")) > "Default arguments for evaluating a org source block.") > ---- > otoh, the manual thinks ":results replace" should be the default: > ---- > * 'replace' The default value. Any existing results will be removed, > and the new results will be inserted into the Org mode buffer in > their place. E.g., ':results output replace'. > ---- > In this case the defaults for org-mode are different from the general cross-language defaults. As I recall, at the time that the defaults were set for Org-mode code blocks, we did not have options like drawers to allow replaceable raw results. Perhaps the default header arguments for Org-mode should be updated. Best, > > cheers, Greg > -- Eric Schulte http://cs.unm.edu/~eschulte