From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 OMrAFBwpf2SQvQAASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 14:39:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eBm/Exwpf2ROZgAAG6o9tA (envelope-from ) for ; Tue, 06 Jun 2023 14:39:56 +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 E524230BEF for ; Tue, 6 Jun 2023 14:39:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6VxE-0002Hj-5g; Tue, 06 Jun 2023 08:38:28 -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 1q59Ov-0004Lk-Nw for emacs-orgmode@gnu.org; Fri, 02 Jun 2023 14:21:25 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q59Ot-0004Kn-SB for emacs-orgmode@gnu.org; Fri, 02 Jun 2023 14:21:25 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-626149fbc8eso23045586d6.3 for ; Fri, 02 Jun 2023 11:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685730081; x=1688322081; h=mime-version:message-id:user-agent:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=uThMbMs8uevcDgjH4tLQo9sgXntbcefFKbb6meey8wE=; b=O0ab3P5eIhTDt0msjqiLaWMEKGZ3jJopKbkO1XJ64Aem7mq/D1p9JzdHyf5MZvpi5K TFwC7ew0TLxmfMK//hvMWbd79FN+7Tuh1RPg8J9WJpnIYX5gFWSc6on0y6Jw+X8QUCmf MhqCJ2lxJNS+pyPu2CvGCbxm+O/fWJm3WibWo1K8XgmTap2P+kxGPAWY6+4BFW2hGmcD ucJ5f1ldjNKzgnnDrEe6U0JZaEIflKEpGrGaIEro5YlparQYsFgt0V9A2c3cQ5+lovmz ja5LnBeJkZf2oO770P5/2OIllEqB2yjjE/c7PaiHBC3goZtgR1va2dLcHJ5m2LDxp3c3 q7cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685730081; x=1688322081; h=mime-version:message-id:user-agent:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uThMbMs8uevcDgjH4tLQo9sgXntbcefFKbb6meey8wE=; b=GUAiPX7ZKOVUaJpH8BLPw2wvcn4PifJFPV8fkOpsX85ldlG0pP/48gGsFG/yEgAMTD sCP0OuF8OS3VcXSbzqFR3QY/xaznaqz0HMBCvPH7xny3aGKyqpsS5NSoHXn3+ovuyn8p xRRwU3PHYAEEK87wlLBXMIyh2vhz870vh2U0xa4o69YEHuACiMWlBVEDif3Vq3cp0JeR /kVF67MMNMOAQKplDYyfwMnXG5yr5DoJaEcdPr069b5GGbweWU/tdpGgdGzJzLtK8HnN n0iwPLO7mWhm04OTDmZEmJDx494MK26QyK9JbmQC3ueDHdteE2UVk9S5inKLry0vYxp5 kArw== X-Gm-Message-State: AC+VfDyPosRNko4HwuLEAREte0MtjJpkg5FlXGi51kP9bIj2zVEvapy7 suwyIXGei0flT+p85LyQ+i/58VV9kNI= X-Google-Smtp-Source: ACHHUZ4aA2RFNh6qsjy1iebrmhf6LuoPKmaAbOMsh3WtoOtcmhJaI4lisfTI5cz2jnLHH9fdo4MGYQ== X-Received: by 2002:a05:6214:c4a:b0:625:aa49:9abc with SMTP id r10-20020a0562140c4a00b00625aa499abcmr16431510qvj.64.1685730081474; Fri, 02 Jun 2023 11:21:21 -0700 (PDT) Received: from GHOST-LEGION (pool-108-20-236-18.bstnma.fios.verizon.net. [108.20.236.18]) by smtp.gmail.com with ESMTPSA id f12-20020a0cf7cc000000b0062821057ac7sm1130343qvo.39.2023.06.02.11.21.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 11:21:21 -0700 (PDT) From: Emin Martinian To: emacs-orgmode@gnu.org Subject: Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] Date: Fri, 02 Jun 2023 14:04:55 -0400 User-agent: mu4e 1.4.15; emacs 27.1 Message-ID: <87r0qt67z7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=emin.martinian@gmail.com; helo=mail-qv1-xf32.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Tue, 06 Jun 2023 08:38:23 -0400 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=1686055195; a=rsa-sha256; cv=none; b=kzzv6Oqg3gnRdAv+03JSqLnj/BoFe7uOVomh++sXGIkFwmpVh7xX4ePe3NuLm5TyAyAIIq guPrfxIwYjio5KozyfFuDBah8C/zXNFNxI5Xe4KdO6xdnynevEkqK2OOgQJDqx6nW2VldZ 475BmXxYXfnrXOD6BH5IkDG0PFFH9T+W0ThLzNcK+1KjCRHDnj9a85HV/ojc1EWK/5nND7 pnOH1xdZrl/dngjFlAExppbEpBuMuP6IRWTVTYGmHfu6uHsgWYufAOndUNR7n5n0RPuTOk M+FxhA2JKbB8ZJWKuxRoWZhEJGv27Od8jGxt2wJqt6MIZFKi0503EhMIIaPdQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=O0ab3P5e; dmarc=pass (policy=none) header.from=gmail.com; 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=1686055195; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uThMbMs8uevcDgjH4tLQo9sgXntbcefFKbb6meey8wE=; b=S9UEt+3EkMnIPmL/sm/GEvjvgjUuQz+506Fasc/6Wcf/tEm0BkYLhZk7u71c0Bop3BF47i VyRW+bHa10Flmbfip4N7GJVmsw+l8H2V/8PzCLmrhz0l0kjNIUyYnstFc4R0jqHomqRVma RbStjfegRMwUtZncOxMpdOLSHwMRxzadNyVHqf8822XKsT1ZZ0PH5TzFeFEb2/3z7Kl9g1 AdauoESB1D7s1EegqoyZZu+mVbfGfZ3z4uG9EcllAgXvRNn2OIr0ChxoGrwdDeXjorXDda ohZKj/AhS9JAxR/bp2nUm0cm0ypXaEH3AcRgx5oVpRIzt5op5RzSuUND2wphqg== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=O0ab3P5e; dmarc=pass (policy=none) header.from=gmail.com; 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: -8.85 X-Spam-Score: -8.85 X-Migadu-Queue-Id: E524230BEF X-TUID: UYrmGnmMjRpC --=-=-= Content-Type: text/plain Content-Disposition: inline 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 verified the bug using `emacs -nw -q' with version 9.3 but would be happy to send more information if the above is not enough to reproduce. Thanks. --=-=-= Content-Type: text/html Content-Disposition: inline

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 https://orgmode.org/manual/Evaluating-Code-Blocks.html. 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 verified the bug using emacs -nw -q with version 9.3 but would be happy to send more information if the above is not enough to reproduce.

Thanks.

--=-=-=--