From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: results block doesn't get replaced when doing :results raw Date: Tue, 10 Mar 2020 16:30:48 -0400 Message-ID: <87pndkymtj.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58555) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBlWk-0008L9-SJ for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 16:30:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBlWj-0003pb-Rd for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 16:30:58 -0400 Received: from ciao.gmane.io ([159.69.161.202]:53776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBlWj-0003b1-Li for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 16:30:57 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jBlWh-000MP4-H5 for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 21:30:55 +0100 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org George Mauer writes: > I've seen this happening a lot in a variety of modes. When I do `:results raw`, on subsequent  > evaluations, rather than replacing the results block, it gets appended to. > > This is almost never what I want. I remember seeing some use of `:results raw replace` in some manual > or another but that never really seems to work for me. > > Is there a property or something that can be set to always replace? > That's expected: with `:results raw', org-babel does not know where the results end, since there is no marker, so it cannot clear them before producing the new results - it just puts them right after the `#+RESULTS:' line. Why are you using `raw'? Can you use some other format (e.g. `drawer' or `example') instead? -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler