Thorsten Jolitz wrote:
> Nick Dokos <ndo...@gmail.com> writes:
>
>> Thorsten Jolitz <tjol...@gmail.com> writes:
>>
>>> Hi List,
>>>
>>> evaluating this 3 times does not work as expected:
>>>
>>> ,----
>>> | * A
>>> | 
>>> | #+header: :results raw replace
>>> | #+begin_src emacs-lisp 
>>> |   (+ 2 2)
>>> | #+end_src
>>> | 
>>> | #+results:
>>> | 4
>>> | 4
>>> | 4
>>> `----
>>>
>>> Independent from argument order, 'replace' (which should be default
>>> anyway) is ignored.
>>
>> Right - `raw' inserts results without delimiters so org has no idea
>> where they end and cannot delete them (try org-babel-remove-result)
>> or replace them.
>
> ok, I see 
>
> from `org-babel-remove-result':
> ,----
> | (when (looking-at (concat org-babel-result-regexp ".*$")) ...)
> `----
>
> seems a bit tricky to adapt this to 'raw results ... 
>
> But at least there should be a hint in the manual that ':results raw
> replace' is not supposed to work, and what would be a possible
> workaround.

Workarounds:

- A block wrapper makes it possible for the entirety of the results to
  be clearly located, regardless of their contents, and replaced (with
  new results) by Babel upon code block re-evaluation, or

- :results drawer

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to