emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: results block doesn't get replaced when doing :results raw
Date: Tue, 10 Mar 2020 16:30:48 -0400	[thread overview]
Message-ID: <87pndkymtj.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CA+pajWJSv5tjNtC3gfXmqOc+O2qih1UQtEUzmwOqQQ3KHMOtPg@mail.gmail.com

George Mauer <gmauer@gmail.com> 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

      reply	other threads:[~2020-03-10 20:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 15:02 results block doesn't get replaced when doing :results raw George Mauer
2020-03-10 20:30 ` Nick Dokos [this message]

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=87pndkymtj.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.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).