* results block doesn't get replaced when doing :results raw
@ 2020-03-10 15:02 George Mauer
2020-03-10 20:30 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: George Mauer @ 2020-03-10 15:02 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: results block doesn't get replaced when doing :results raw
2020-03-10 15:02 results block doesn't get replaced when doing :results raw George Mauer
@ 2020-03-10 20:30 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2020-03-10 20:30 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-10 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 15:02 results block doesn't get replaced when doing :results raw George Mauer
2020-03-10 20:30 ` Nick Dokos
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).