emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sergey <srg.koshelev@protonmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Bug: Code block :results raw replace issue [9.3.7 (9.3.7-22-gbd9785-elpaplus @ /Users/skoshelev/.emacs.d/elpa/26.2/develop/org-plus-contrib-20200824/)]
Date: Tue, 06 Oct 2020 13:14:34 +0000	[thread overview]
Message-ID: <zVvXCvle4vyPK4sXu2aUDX3_rd4OKt8AOKj18PZIE5VOYg_-4eJTK9I1Zl62yPqVe7A3bqqTv1sUzp-t7_w_MKDqtHct358zwy5F77OdP3Y=@protonmail.com> (raw)
In-Reply-To: <87tuv7u12x.fsf@nicolasgoaziou.fr>

Thank you, Nicolas. I suspected as much.
I think it would be nice to update the manual to clearly state this behavior.


Cheers,
Sergey.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, October 6th, 2020 at 4:59 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Sergey srg.koshelev@protonmail.com writes:
>
> > Code block header argument ~replace~ seems to not to work in conjunction
> >
> > with ~raw~. This leads to output being pre-pended instead of being
> >
> > replaced to the results block.
> >
> > Below is a working example:
> >
> > #+begin_src python :session python-test :results output raw replace
> >
> > print('This line will be added every time this code runs')
> >
> > #+end_src
> >
> > #+RESULTS:
> >
> > This line will be added every time this code runs
>
> This is expected. With "raw", Org has no way to determine where the
>
> output starts, ends, or even if there is one already. You may want to
>
> use another option if you want to replace results.
>
> Regards,
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Nicolas Goaziou


      reply	other threads:[~2020-10-06 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-06  4:10 Sergey
2020-10-06  9:59 ` Nicolas Goaziou
2020-10-06 13:14   ` Sergey [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='zVvXCvle4vyPK4sXu2aUDX3_rd4OKt8AOKj18PZIE5VOYg_-4eJTK9I1Zl62yPqVe7A3bqqTv1sUzp-t7_w_MKDqtHct358zwy5F77OdP3Y=@protonmail.com' \
    --to=srg.koshelev@protonmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --subject='Re: Bug: Code block :results raw replace issue [9.3.7 (9.3.7-22-gbd9785-elpaplus @ /Users/skoshelev/.emacs.d/elpa/26.2/develop/org-plus-contrib-20200824/)]' \
    /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

Code repositories for project(s) associated with this 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).