From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cDvUL2h9gGRnwgAASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 14:51:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CGTXL2h9gGTsrQAA9RJhRA (envelope-from ) for ; Wed, 07 Jun 2023 14:51:52 +0200 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 4D5FB38F05 for ; Wed, 7 Jun 2023 14:51:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6sd6-00031d-64; Wed, 07 Jun 2023 08:51:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sd4-00031F-C8 for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:51:10 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sd0-00033M-Ro for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:51:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 04ADB240028 for ; Wed, 7 Jun 2023 14:51:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686142264; bh=P41jyz2HW02fzvVyS5Y8Ccd72IU8jwZydCsNoFY1JyU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=mA0+LKsateK37AeCSyiXHidmig6Y9FPzMCksKQR3IoM41xlc5U2MyYAyhMVIRZUTT R06k2MyiicnrWx8fTXsifyqgS6kRcjKXdsxiDpvQ57M0Ce/rhbSaBaFG3tyI19FGNC OHdw4zU0RWZDZtHZ4wQeONLhuETJ13ggpykxwxKycBlJx77Bk2BmsHmQANOvcws7dR MzZsTqFsZttysdY4YRN139/J4mTHQmwrHj49mVkUog8wMoplQtGZCIsNh2EyTWMeCX 9q2DNRMCTQCIm4KNfoHtGqCUZusU7VceHPAHAx5cI9GQW9W6t73iC5kqqGD5StSaYG nTSc/++UA43pA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QbnJk64Nsz9rxP; Wed, 7 Jun 2023 14:51:02 +0200 (CEST) From: Ihor Radchenko To: Emin Martinian Cc: emacs-orgmode@gnu.org Subject: Re: Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] In-Reply-To: <87r0qt67z7.fsf@gmail.com> References: <87r0qt67z7.fsf@gmail.com> Date: Wed, 07 Jun 2023 12:55:47 +0000 Message-ID: <87fs73ctyk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686142312; a=rsa-sha256; cv=none; b=hp69gjJW2sdXts9NUrMKxcnYTY+S2xYFJH8hdI4KQbg9ACmunY5QF8iadEDS+q3YEa38CG 5efcmeUXMSsGZPnx61wb9Zh5DOy0uZRnm4IY6hnCy3ASAhNWC/JaTVOX6eHOVL2aMQFetH TL2euFVG63cgIKVkTeyUOPyB89Zu8A/R3eiXJGq2DvxPBFRBhL1gNlFHzxvddMyVxObJ7D zYY8EnOMhKLn5Y7xt3NvZDHe7oPGpS3L36/YbRHRH9pjbOvxI9LFcAhsaG69z9Y1dqltHI KkA7nIoNx4kIL5iVq1+KP8PknB56XWdHDBU/Z5aqW/K0YFlCITX2BCTQ4ao3wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mA0+LKsa; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686142312; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7OuakgfeHm9ZwO6OPsG+a3/Ltz4/e5kQ42PBgv3XRsk=; b=KovQwd3en+w3T2Lm/S5oRAOM3+YfE0gaAofrm+kGQn1vjphUMAVOYJtpPUXmcavwXUAOzB fvh0dv0/1G3FfmScBrKvp/sX4WAA8WXJwS26fV97Lq/5spfN4MmhmyuONeSmCr0sB5Nh5W ahgdwus4IKVMhkE9mdGvBJH/k3yzroK/TAELPLyqB/Q7bfTphV4qe/4/Ze4xHPdJMriWej FDc1Umo4BVFWplmUPB9T1be2S2YOwPaAyY7PvHMKuiKvRsdQ8u5QxpL59gVAO6pFGxTr7v JourryDkD1F64Ax+uxwkXzoGrH6kQ+gzG5pITkm9XUoPSHg7dqv1nDuX3VvBCw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mA0+LKsa; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.46 X-Spam-Score: -7.46 X-Migadu-Queue-Id: 4D5FB38F05 X-TUID: pNxv5NDXfLQV Emin Martinian writes: > I think there is a bug with the `:cache' header and how results of > evaluation are wrapped: Using `:cache yes' and wrapping the results > prevents later blocks using the cached results. > > To reproduce, start with an example like the one at the bottom of the > documentation in > . Then add > something like `:wrap src R' (or `:results value drawer') to the header > of the block named `random' and the second block produces `nil' instead > of the desired result. I tried to evaluate the following in various orders. #+NAME: random #+BEGIN_SRC R :cache yes :wrap src R runif(+1) #+END_SRC #+NAME: caller #+BEGIN_SRC emacs-lisp :var x=random :cache yes x #+END_SRC I am unable to see any issues with the latest development version of Org. You may try to update Org and check on your side. Canceled, for now. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at