From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id C18hLqHyzmGvmwAAgWs5BA (envelope-from ) for ; Fri, 31 Dec 2021 13:08:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QKn/JaHyzmHKsQAAG6o9tA (envelope-from ) for ; Fri, 31 Dec 2021 13:08:01 +0100 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 1562C18B3C for ; Fri, 31 Dec 2021 13:08:01 +0100 (CET) Received: from localhost ([::1]:59334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3GhU-0007CS-7W for larch@yhetil.org; Fri, 31 Dec 2021 07:08:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3GgY-000778-9N for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 07:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3GgX-0002df-UN for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 07:07:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3GgX-0001cZ-IX for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 07:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Fri, 31 Dec 2021 12:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52545 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: "52545@debbugs.gnu.org" <52545@debbugs.gnu.org> Received: via spool by 52545-submit@debbugs.gnu.org id=B52545.16409523676146 (code B ref 52545); Fri, 31 Dec 2021 12:07:01 +0000 Received: (at 52545) by debbugs.gnu.org; 31 Dec 2021 12:06:07 +0000 Received: from localhost ([127.0.0.1]:55220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3Gfe-0001b2-RV for submit@debbugs.gnu.org; Fri, 31 Dec 2021 07:06:07 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:36761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3Gfd-0001aZ-Jv for 52545@debbugs.gnu.org; Fri, 31 Dec 2021 07:06:05 -0500 Received: by mail-lf1-f51.google.com with SMTP id j11so58176357lfg.3 for <52545@debbugs.gnu.org>; Fri, 31 Dec 2021 04:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=y5T8b9CJQP3h+y9qiLowlJTNjf2qQg7hJCB3CehBkCs=; b=EMCQdZt+ANj4xNy4sCl+NRU8KkjlAIwHyXRBW4FKJ9o8EjxIENmEK+o8GhQBEh5E1L jB2GdFzvdbxwvNzu6R14gj3uSAHwrG1Xg+waBDh6lFhynR5quwzSueF+qVij82MSVAbS FKkAKJujj6/mL/zWwmxaH3MJ7nQfKzrP4rxOudG02VhV5xB9G5eb2dfEvTvu3PFqMZGH CteEdF3Z69gBgTrlj0sYFzSYQ52alkWYUUIu9uxX3pQxWXtT0REv4pk5OWb2n6d1gqnj KY4e523vQAhWTxGN7oXN7i+2hLZoiyjhIRmHfh6I3jDthmwMEQnZXxGpCOiZCuHV11S0 91gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=y5T8b9CJQP3h+y9qiLowlJTNjf2qQg7hJCB3CehBkCs=; b=0t380bXMsHxmk6+D3qfXt394nNC3Rqd5upuvsVzgNWUxRXJaTweSMZ6sFU21PN/bCJ ol+eLcgyV0A98jD0XAU170eZQ/Xg/PkDlFNJ9v8uw1RnfyITAduP7RAVXAiHQylfarss YuWsmQB152mSEzEpn6n5TTp5gO6KmIhftNQ1RWUwoArGA1WWhNv2F3ol+1NH+AlHesl2 lARZp7WU+0edAIqohOHHsTS0Kgko/QC9T2qhW27xP+w5XZHwJCcHOEFyq6SI8IXL2s6x rnnBSf2Xeasmfe9Q2MsHsPrw0TklT0lipX/iE7b83IHyMNTlaGdCZ41ETclQ7zRupUWt mxww== X-Gm-Message-State: AOAM532gk1sKp+HOxnSVcoKb4OxeC2vIM7QKMrN+OlaBnp0oqdkH8fQt TgKKWEVhvsy3Dhp9hO74qCSYGGdj5fw= X-Google-Smtp-Source: ABdhPJwu3Pr3ZGY+XmabDGD4cTCBGqt8tQoNlTDEBqywYHCjHM3h9KQnLyVRdeX1o+wM05ZhPigFxw== X-Received: by 2002:a19:7902:: with SMTP id u2mr31293727lfc.512.1640952359249; Fri, 31 Dec 2021 04:05:59 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id s13sm2756878lfg.126.2021.12.31.04.05.58 for <52545@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Dec 2021 04:05:58 -0800 (PST) References: <87ilvnx29d.fsf@kyleam.com> <87y24ib5v1.fsf@localhost> <87mtkssmth.fsf@localhost> <8735mitzij.fsf@localhost> <840BA83C-A261-49FD-8FE5-EFEEA2DDEBCB@health.ucsd.edu> From: Max Nikulin Message-ID: <5b40c31e-4eb7-3824-e2dc-313f17ca17bf@gmail.com> Date: Fri, 31 Dec 2021 19:05:50 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org 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=1640952481; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=y5T8b9CJQP3h+y9qiLowlJTNjf2qQg7hJCB3CehBkCs=; b=IP49N1zb747GHKpEM2bohJ+PTCXSjNWfq/kUoQ6rpfNwVpQfdir8miN18A5uT1M00fAT5T 6UgIUxeo97u9ho3WCH7Qmfx/zlmaQg/DQI9OzKYCWHRh/9nFSSiXKWEZlcXyN9gBwu05Q2 zayEpRLDd4G9Ph2Kqd4jaooCVzHpgTHkC5b+3j/V79FL+ykl1IjosGsYLGm94ZejXSDtFS ipf4Ad9nNndpbgB1K4Ds65/KCFjF/SvRrcux4A5FxDFHm2zIDE41W4QfhCVJpqsYb3c+xc tER/n3d5Bm96/qffW7g3tBTr6FM6wKiaPxwOW6YsOhOLuVD52g8FJ0xREGgi6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640952481; a=rsa-sha256; cv=none; b=Xjn1cwTd63DTZoT6TKc0R0zTDrX2ckyoYhQa7qq+lyBmDFrSVCu1YumQQKic3HYwIN4EPY PyLcsnsjPujv9RKAAOuq1cIQb8h+Nv9gpU9+S5BHOK4q4p4T0IMtnfgvuA8lCfZzqUXbVG JNT283z7DhMaM83Aamzq3U67s8PI/MXsR+M+Nj4XLIuzzYQq017ZLYRGbkv9D8c1VHt/ra UzeOj1v5CuwjemKLlmfuzsiBZShsNYca4xsesw2mN2dJ0TefoLWaKiRJlVjSNpg33yV6yq 6ph+eoebCr5CWZRLWWY8LhFas7Lop6ZWOZosrud1d8EB0+TfA4g94DI0CNtLTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=EMCQdZt+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=EMCQdZt+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 1562C18B3C X-Spam-Score: -1.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: zG5d4an9weKK On 30/12/2021 15:00, Rudolf Adamkovič wrote: > > #+property: header-args:bibtex+ :eval yes Why do you set ":eval yes" explicitly for bibtex if you believe that it should not be executed? I suppose, the following may be considered as a complete example suitable to compare behavior of `org-babel-execute-buffer' and export: ---- >8 ---- #+property: header-args:bibtex+ :exports none Test file with =bibtex= (to tangle) and =elisp= (to execute) code blocks. #+begin_src bibtex :tangle yes @misc{ex1, title = "Example" } #+end_src #+begin_src elisp (message "From elisp") #+end_src ---- 8< ---- To solve the problem avoiding per-file configuration you can try (setq org-babel-default-header-args:bibtex '((:eval . "no"))) Unsure if it should be default. Since LaTeX export is important part of Org it is reasonable to expect that Org have some notion of BibTeX allowing to avoid execution of such source blocks. Currently there is no BibTeX babel backend, but some user might create one that e.g. formats entries as some alternative to org-cite. Can default header arguments cause a problem in such case? Should some function a macro be provided to facilitate declaring languages as data format (config files, JSON, YAML, etc.) rather than executable source code?