From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GK0OGLkaLWPGjQAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 04:32:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eK8RF7kaLWMs+AAAG6o9tA (envelope-from ) for ; Fri, 23 Sep 2022 04:32:25 +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 F1B8817F3A for ; Fri, 23 Sep 2022 04:32:24 +0200 (CEST) Received: from localhost ([::1]:37538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obYUK-0000bX-4v for larch@yhetil.org; Thu, 22 Sep 2022 22:32:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obYSW-0000Ze-2b for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 22:30:32 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:43590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obYST-0006Gd-VO for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 22:30:31 -0400 Received: by mail-pj1-x1032.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so4025365pjk.2 for ; Thu, 22 Sep 2022 19:30:14 -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; bh=vyL7y5oLkYyDiECRMyAs2KTs7O+RKC6aR4JwMxlTVKo=; b=GG6J73TCAvT+rFbEev7Og7QFbyeuL6rDsuuO1twbvAs9fj82cGU/IsJQsBucFHQbWa 0LJqTdrUvvJX8u8Iy3Pwzq5PYQnYPoxPKIpSYgQNXEtW6FaD3E2NHoN5Tdp6C7Vea9rQ CRkDNbsmsso7F03NDGWvI78qmguegtCclh6GbNEl2+sHJ0a6QwT2fjYLkIZ8LGeeTXsp yVYKIS2S7bpmCOop7Rf2iwFvie0iy9Nbopmrlhg7b1pvJneY4Jy0evlAQjd1NecgUOax 0IJgxfit7P62lce8X0dqHpd/v7gHXAkMHWYnjcGzCxijawvjz70y8HctpS2WfV8H24wU uatg== 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; bh=vyL7y5oLkYyDiECRMyAs2KTs7O+RKC6aR4JwMxlTVKo=; b=dF+/RSxOfLzrDfzZ+v/Zutjy6BFbeGpB5q8cv7y4z7XKZNk5rVqCGjJgLpH2ZHUoXA 7j4tzsiwkHFmtXXTb06uWcTiMs0OcENLZ/332Xy6heM6VTjsKq4Ls/KAiITFSZH4scAl 7zvZzoeEpaGhGgJZOGarEHwb/2tY6AFNeeE/xhi3jbzrrKe9MHU0lPPlgRy9vyhNtKqb 5OMSjWBTxEZri+mwuGUpg/Hbzb2BuZTSnBrH6wohoaZxdCrA6wFI8xp4r6LgsdZG6za8 YCy8Y6awIXNabiedbY55ZL1ernlFIaurtkvV/rP9StmF7gIMZoNq6RCkBacGC+24/po8 JMvg== X-Gm-Message-State: ACrzQf31ZiucHihDIsmkyP6R4AJtJ314VZDnxRJ+Jinh2mQ/c1rDGrCr 4fo1sKy8qqi4yZv5K6v0/AE= X-Google-Smtp-Source: AMsMyM67rQBhK6Db/Wlc0hgvBuqiA2oXZ9glMYbAwyn/q7KkLIGegr3k2Lro/Jnqtir9Lveyo++Fcg== X-Received: by 2002:a17:903:2286:b0:178:349b:d21c with SMTP id b6-20020a170903228600b00178349bd21cmr6199598plh.71.1663900213195; Thu, 22 Sep 2022 19:30:13 -0700 (PDT) Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id n8-20020a170902e54800b001781a7c28b9sm4731453plf.240.2022.09.22.19.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 19:30:12 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: per-file (or, really, per buffer) allowing/disallowing code block execution In-Reply-To: References: <595135.1662491125@archlinux> <87zgfao1hu.fsf@localhost> <877d2ddrkn.fsf@localhost> <8735cyxonl.fsf@localhost> <1966694.1662990962@archlinux> <1107905.1663615715@archlinux> Date: Fri, 23 Sep 2022 10:31:04 +0800 Message-ID: <87pmfm95zr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1032.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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663900345; 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=vyL7y5oLkYyDiECRMyAs2KTs7O+RKC6aR4JwMxlTVKo=; b=E1vjECdc3IEiFp8Y2LvAVlYv+Tc3Csujbygx9GosNiWJb5GPyZ8vEMTwHlw2x8dn0XMDM0 ITbEdzNnjCkk+H50xsHizJOea+knvTxVd/tEkdS1T1/6WpX38rl64YP2BWUEpQ8kNDwC8/ HfCUsYkJq6NAZZlI1Vpu57Zzbn+lpWRZYOEKEdZ+Z8Ycz2Xv9YrpWFQ1AAckxQGF090n4k xTTmtLhT5Wh8V5FHbJDmwWeg6U7D9JheLasf/ORdNJP9lpMf9QlK3gBx421VOgUmLEzUPH ZB4Ktsu+JeaKJRo9q84tkgWIt2x0MO2+yY1kqhk/3NqbexY2nApG41pSu7nJZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663900345; a=rsa-sha256; cv=none; b=ZQ2UfMlCXkyCrbl3o7mqgGnLZE0H4TT/aCzC65J4mAaevE9cCmQaAWKwAsaeuZGSot8g5E YgoM/tSHoL6slfdKvOR5dlVMrZG9riM6RYwlJe4YunZyN+KC34wO7SulYU6QjBGxH8Xl76 PxVYQmQsn4mCNxWZHglKwIZNv3Bl/iAxsqVhRI65lvJ3+b1dvcqXJAB5ctTjbx9f8QMjUb vJo8i88Jzg90bESlqvwgnjh0WSL5wf36Mz3SmgvOSJgR8+Csy+fh2spX0kuezn5y3KB0LR tD10Smo+j2e30Ajf8c9ddWfOJmjeE9qsOjlqgyU0ZCkhuQRBzuKQM+ysk1+p2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GG6J73TC; 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.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GG6J73TC; 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: F1B8817F3A X-Spam-Score: -3.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0+XHIsTigJDB Max Nikulin writes: > Since `org-confirm-babel-evaluate' may be customized to a function, > every participant of this thread may implement their preferred policies > with no modification of Org code or even an advice to the default > function. Not that easy. `org-confirm-babel-evaluate' only knows about currently executed src block. It has no access to its callers, like `org-babel-execute-buffer'. While `org-confirm-babel-evaluate' can be used to disable queries in buffer during current Emacs session, it will be hard to do something like "yes, for all the next queries in the current `org-babel-execute-buffer' call". -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92