From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kGVfBRf8QGPcFwEAbAwnHQ (envelope-from ) for ; Sat, 08 Oct 2022 06:27:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CFJfBRf8QGN1lAAAauVa8A (envelope-from ) for ; Sat, 08 Oct 2022 06:27:03 +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 BF72F31497 for ; Sat, 8 Oct 2022 06:27:02 +0200 (CEST) Received: from localhost ([::1]:43712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh1QT-0008R6-G4 for larch@yhetil.org; Sat, 08 Oct 2022 00:27:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh1Pq-0008Qg-UB for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 00:26:22 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:38713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh1Pp-0003hy-5r for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 00:26:22 -0400 Received: by mail-pj1-x102e.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so8850014pjq.3 for ; Fri, 07 Oct 2022 21:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=HlIvYrvGy9afgY5q6KaX3rBYr9HHTmkEtsE19iAQrIw=; b=XRpCeoAa6EeWJyUZII4fqMrGUPa44DgiP0qFdro6J67KMxqRnAz1Dg7K8+4GiZB0vM Z55u5XinlZyeETY0GrbA5LOLHP4KogI7ZA+kp1fFewnB0+O28UKggN1nc/STLfp/qTIv lbz9JzGlofxL0jhh7EysnrjF7vTghdbr2Ihd2CKNYNoBEuLZO0sHvsWMt0u5uqQYEtTS h+GdXEC7wtnEtqR4U9fNtdsRtp1DjrZvA8WrI+GtrbzwbThYhDtgo4AlPyukmuBvWxis ZFJiLwFXqNPaUoMwY4QWBc0ajvNCsa06E8lR8GQ3CkFbSEq3kdbgdxJXgKkwuJSaTVfr aDRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HlIvYrvGy9afgY5q6KaX3rBYr9HHTmkEtsE19iAQrIw=; b=54vbT/KVpBaHJiT74x+ufyrW3/ZWwY6yb+z3p/OfbLcECT7JBDJXGnOOXRor9UmRD8 XOIu/6NzzHGqGGd/QK+mWZl7gmLans5yQbGrEu/2gOAmJsD95MEVbC8KCXJTn9BGDMV9 PxZeIi9JXHBqqRGXqJDTgzhDvBxf2epfSi20ZdMn+jz0Nwi3vxKix4TxqMGeyG2Huk90 OVjQ0yoNFRcQ3dS35DQox2SyyxEDx69GKsFTqb6tHBDYqQ8+zauYefPVxCbA4pkF4jAa 86zibxv07fiy6kp9fCsZ+oXUQSTzA+s5/BT9BQnsLxvm3BUAUX0bIYv+4XdMNnOwUkYH 6nrw== X-Gm-Message-State: ACrzQf3oO29CyLWrl2mz84wFcT4TlLSR9jqzDDl+JWllq7C2M3q1eMV3 wSUS2oXd1C5dDjoAYK59J5oGMVcbTnr0Fg== X-Google-Smtp-Source: AMsMyM7VtgViy7ezuHZNy665AyWGPVRD/hZAPkZBpaTI2NWKc4AJd4HS/bS0Na0+WZeU/PObeeTvTA== X-Received: by 2002:a17:902:7e0e:b0:17f:8edd:5f00 with SMTP id b14-20020a1709027e0e00b0017f8edd5f00mr8039688plm.96.1665203179641; Fri, 07 Oct 2022 21:26:19 -0700 (PDT) Received: from localhost ([1.83.155.53]) by smtp.gmail.com with ESMTPSA id bc2-20020a170902930200b00172951ddb12sm2321603plb.42.2022.10.07.21.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 21:26:18 -0700 (PDT) From: Ihor Radchenko To: Charles Millar Cc: "emacs-orgmode@gnu.org" Subject: [BUG?] :eval strip-export acts like :eval yes :noweb yes even during export (was: :eval yes use and documentation) In-Reply-To: <87v8uj6l6m.fsf@localhost> References: <599bf3cc-6dbe-4010-129c-a639ecd9ae70.ref@verizon.net> <599bf3cc-6dbe-4010-129c-a639ecd9ae70@verizon.net> <87v8uj6l6m.fsf@localhost> Date: Sat, 08 Oct 2022 12:27:08 +0800 Message-ID: <87bkqnuehv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665203222; 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=HlIvYrvGy9afgY5q6KaX3rBYr9HHTmkEtsE19iAQrIw=; b=up5F7oYOG0defiVuG6gcehQo0nnC/tysNQDADqqmiC0Ad8QpSEyiEd7ZzJurrMhbz+HT8N xaDutGmehfvyJoRYvHN8FdTN/+Il6xyU6QYjEl3iW9zS8Cdbx4VdpK4z/0nEoWmwEu/3E0 brcSbkBHZG+umC6goW/D/FGY6L4GYljB9HhQQaC4W15CUcTgz2XYAmCoEMBYfPGj41EDE0 zktACe4hxB9ZShzFwtAN6UyQad9CVzAm2cbpx/3TVnDIqBbhfGAH/X5AjYrOBAuYxHvheF 0qgSHcMiQVIE4jfOrnZWURsJN+SNC3381rcjXife4PorJ9MIPpWm1Pf9chs+zA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665203222; a=rsa-sha256; cv=none; b=i10CgqQyRZlnUvfRLFlGxSn+/PaJwoja/31B2Yojg3V57GJ4k+fjgjztlGGr8ftxHouhAe ACc/Y9Pjb2eNZzgqgzf3V0SP3PIY4pJ90kC4XIwb08hzUXbSx027NNduxoss3dU1I5U1n4 vUS8rw+zH/ch978wV0hZdHQA57Um4RU+RjWHTbZlKgac9emozHuhP+a17jpqQk/8NBA4cS q66e9czB0adj2d0uzLLCF0UYwDACNioileN+suHMd2S7PdccfHTbNzYHknT3l6h0afSHQn uK8NDPlDaUr7z0rhE8ywXF/VkSg+DTGfVgdphXKF6UMydJ6D49tL74cuKum6UA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XRpCeoAa; 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-Spam-Score: -3.38 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XRpCeoAa; 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-Queue-Id: BF72F31497 X-Spam-Score: -3.38 X-Migadu-Scanner: scn1.migadu.com X-TUID: WdzSLhHB1c6O Ihor Radchenko writes: > Charles Millar writes: > >> Is ":eval yes" officially allowed and, if so, why is it not documented? >> >> Should it be? > > Yes, it should be. Moreover, we have strip-export value undocumented. > > Confirmed. Fixed on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1966a7a8a8a2934443f24ca9c968a4eba09c3650 I documented ":eval yes". strip-export value is actually used, but I feel that it is completely wrong. `org-babel-common-header-args-w-values' lists "strip-export" as an allowed value of :eval argument. Further, `org-babel-noweb-p' returns non-nil for ":eval strip-export". The consequences for the callers of `org-babel-noweb-p' when ":eval strip-export" are the following: 1. `org-babel-expand-noweb-references', `org-babel-execute-src-block', and `org-babel-expand-src-block' always expand noweb references. 2. `org-babel-lob-ingest' always expands noweb references. 3. `org-babel-exp-results' __always__ expands noweb references. The (3) is certainly against intuition. `org-babel-exp-results' (which is a part of export process) __does expand noweb references__ when :eval is strip-export. Not to mention that "strip-export" has nothing to do with evaluation itself. Evaluation cannot be "stripped". Should we remove :eval strip-export altogether? It is confusing and does not yield expected results. Since it is also not documented, we should not worry about breaking user configs. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at