|
From: | Carlos García |
Subject: | Re: [O] [BUG] src_blocks - :wrap blocks not being overwritten |
Date: | Tue, 30 Oct 2018 11:35:00 +0100 |
> On Oct 24, 2018, at 2:29 PM, Carlos García <address@hidden> wrote:
>
> Hi List,
>
> The functionality of replacing blocks using ":wrap" seems to be broken.
> In this email [1] from 2014, a user reported that this was working:
>
> ,----
> | * A
> |
> | #+header: :results raw replace :wrap
> | #+begin_src emacs-lisp
> | (+ 2 2)
> | #+end_src
> |
> | #+results:
> | #+BEGIN_RESULTS
> | 4
> | #+END_RESULTS
> `----
>
> i'm running orgmode 9.1.14 and the "BEGIN_RESULTS" blocks are not getting overwritten. Can anybody else reproduce this problem?
>
Confirmed.
The issue is that the #+BEGIN/END_results is a `special-block', which is not recognized in `org-babel-result-end' as a result type.
I think the fix is to add it.
If the intention is to NOT recognize special-blocks as results, then the empty :wrap needs to have some other effect, like enclosing the result in a drawer.
HTH,
Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |