From: "Carlos García" <carloscg@gmail.com>
To: ccberry@ucsd.edu
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] src_blocks - :wrap blocks not being overwritten
Date: Tue, 30 Oct 2018 11:35:00 +0100 [thread overview]
Message-ID: <CAKzqKV3U=SqAtbLzR3pO7A-LcJJpffXLhuijMA=tLvJcd93sqw@mail.gmail.com> (raw)
In-Reply-To: <95FCF642-1CFF-4DF5-89FC-8A5876889D33@ucsd.edu>
[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]
Hi Chuck,
Thanks for looking into this. How difficult/desirable would it be to create
another block such as "wrap-block" for those blocks created with ":wrap"?
That way, the needed change would be rather elegant:
:line 2478 of ob-core.el:
| ;; Possible results types.
| '(drawer example-block export-block fixed-width item
| plain-list src-block table *wrap-block*)
What would the repercussions be if `special-block' is added to the list?
Regards,
Carlos
On Mon, Oct 29, 2018 at 5:01 PM Berry, Charles <ccberry@ucsd.edu> wrote:
>
>
> > On Oct 24, 2018, at 2:29 PM, Carlos García <carloscg@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 2907 bytes --]
next prev parent reply other threads:[~2018-10-30 10:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 21:29 [BUG] src_blocks - :wrap blocks not being overwritten Carlos García
2018-10-29 16:00 ` Berry, Charles
2018-10-30 10:35 ` Carlos García [this message]
2018-10-30 15:24 ` Berry, Charles
2018-10-31 9:26 ` Carlos García
2018-10-31 16:24 ` Berry, Charles
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='CAKzqKV3U=SqAtbLzR3pO7A-LcJJpffXLhuijMA=tLvJcd93sqw@mail.gmail.com' \
--to=carloscg@gmail.com \
--cc=ccberry@ucsd.edu \
--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).