From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AC6FLq52fF/RdAAA0tVLHw (envelope-from ) for ; Tue, 06 Oct 2020 13:52:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qC5FKq52fF93QgAAbx9fmQ (envelope-from ) for ; Tue, 06 Oct 2020 13:52:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CFB99402A0 for ; Tue, 6 Oct 2020 13:52:44 +0000 (UTC) Received: from localhost ([::1]:53036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPnOT-0004dQ-Pa for larch@yhetil.org; Tue, 06 Oct 2020 09:52:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPmnm-0006Wi-5j for emacs-orgmode@gnu.org; Tue, 06 Oct 2020 09:14:50 -0400 Received: from mail-40137.protonmail.ch ([185.70.40.137]:58297) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPmnj-00045t-4v for emacs-orgmode@gnu.org; Tue, 06 Oct 2020 09:14:45 -0400 Date: Tue, 06 Oct 2020 13:14:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601990080; bh=sveWhP+Vup7+u9RwxyN+1Pwy56uYEwuDSdhSnhl63zE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=yY/yiI3+SWy1pQeOC/N/xLKEr/v1jDWv7mCh24rLvkuzasnCqo1N/SR0glWpKOM2z 4bUlUuTmXzjmhigg15nt0L4TM9tbySVaSwaE1sZfSIhh9O9/RXo1DZzMUlAreWtMB4 OiWoVLY4RYE8qUOT3BJOy08DdY5H5ImCTr23vN7c= To: Nicolas Goaziou From: Sergey Cc: "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/)] Message-ID: In-Reply-To: <87tuv7u12x.fsf@nicolasgoaziou.fr> References: <87tuv7u12x.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.137; envelope-from=srg.koshelev@protonmail.com; helo=mail-40137.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/06 09:14:40 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 06 Oct 2020 09:52:19 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sergey Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=yY/yiI3+; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: YtIzpfJMVC9X Thank you, Nicolas. I suspected as much. I think it would be nice to update the manual to clearly state this behavio= r. Cheers, Sergey. Sent with ProtonMail Secure Email. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, October 6th, 2020 at 4:59 AM, Nicolas Goaziou wrote: > Hello, > > Sergey srg.koshelev@protonmail.com writes: > > > Code block header argument ~replace~ seems to not to work in conjunctio= n > > > > 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