From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SBRjOxjslGPFvQAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 21:29:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WGRxOxjslGNBTAAA9RJhRA (envelope-from ) for ; Sat, 10 Dec 2022 21:29:12 +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 90BC28921 for ; Sat, 10 Dec 2022 21:29:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p46SM-0008D4-E2; Sat, 10 Dec 2022 15:28:22 -0500 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 1p46SK-0008Cb-77 for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 15:28:20 -0500 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p46SI-0006II-EW for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 15:28:19 -0500 Received: by mail-yb1-xb2e.google.com with SMTP id v71so9422904ybv.6 for ; Sat, 10 Dec 2022 12:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=00jQI6bQnGyB87WbwNuBB+XhrtQH22YP9K/+OQjdtoQ=; b=jwKwzbyMyaGtXWewD7gfEhTBXw/1fBzwegtgLu35pAJ9IeIDEOKV4NN5hHnF1yTCuU lfGnZbXRYSl7GgxSGX16aQciKzcIaxpPCKUoYXnNMQZGHT0dKYEgTgC9fPjDmlLhjQ02 cI0We/0zakUVzWY3y9j0uCFEKojg88Ity1Mi9bKcqtJQv/KFgOeN7eCWLg2ypfPvUCGv +GJto7zQRAWZnmt3DhSofySL2ZyUKIirukJQODlGdlp383HmeDXZqwxYa/3WTC3pmdbt x4fJSnmgwT7d2+JNSJRq1gV2lVrbiGNq5yNqJTyI8g8L5fXw87tnwistnFVFOUMgxKww 1xlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=00jQI6bQnGyB87WbwNuBB+XhrtQH22YP9K/+OQjdtoQ=; b=Z0/RFZ6yfmH1+gTV7i7p8Q0uM4x9WYkUMxbE9TRwiHLjaEayBgNxFx4SLPr7gFq+rZ HFOQH2CYJjIaob0vyyp5l4RDf07LjTaGTJ9m3hmXzzuvxOnTlLBCpMCfBaAOME49415i +F5hBsO3i/Bb7GxKIiPm+namrppjhygnrX6i5xN+SXwOZ5mAD7XpRFAFgBWcnyRmU9Fc x44wKzHoVSW4V61pDiXavAOSuaRcD/n2M7+fbflEkFF38jCU6m1mT3k7JC/6tyRJ3XGD EzQEiNQyBUleM8NjtdE+kSYROQKPsKsfesmgEBbEvqH5IWWHyEizcejvPd/g7sKoaNiE mbaA== X-Gm-Message-State: ANoB5pkIZ6bH8Cy0oMoPjc9np+5aQby2vxcn4YfdfKHagJ3aKD6Ac1G+ qwdp0ZkI9lDPQk2vyjhah/n+kgQ1T6o3nGA9xMRdWCAypUA= X-Google-Smtp-Source: AA0mqf5J1H0KnjlLo2p13Q/0ieR06SP3TsROf2pn4XOM/IJXOR6pwRDlAAKTxd86nU2EOiUlHXvHPepsDN+4kxtfN80= X-Received: by 2002:a25:1e55:0:b0:6f6:648:510b with SMTP id e82-20020a251e55000000b006f60648510bmr49024218ybe.637.1670704095724; Sat, 10 Dec 2022 12:28:15 -0800 (PST) MIME-Version: 1.0 From: Tom Gillespie Date: Sat, 10 Dec 2022 12:28:04 -0800 Message-ID: Subject: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable To: emacs-orgmode Content-Type: multipart/mixed; boundary="00000000000026c64605ef7f1c14" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=tgbugs@gmail.com; helo=mail-yb1-xb2e.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, 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-bounces+larch=yhetil.org@gnu.org 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=1670704152; 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=00jQI6bQnGyB87WbwNuBB+XhrtQH22YP9K/+OQjdtoQ=; b=VL/fOMqlY0OAxhCXvEHsPuq6ZpqmwN9YZe4xTizZKGk28bp7CvMrnRiyp7fEWrQXLh1KNW +5Y5J+hXVdljKIeNH/v3HopfwztAH9i9nXDyQZdAUSdb9tjMccIg1sFxVr/jlqBTluV0yV B+XQpdpDFpsCKqB56g5W/NeIqBd61t0U4KeGdeTKjTfxQeNs8chOjDmOAniCQWnn5AmrBy AcaXq3X9iQojHNtFuBJ3ric79Lwp5t9syEbNSYhdqTiu3ApE9zF1wAxXKaIGPsViMenM3f jCsODBUGZOo475s5dE3Y2Yzt4HuYLLYRLyts+A7ZSTWCzQTfJWUGWoUC4CvpmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670704152; a=rsa-sha256; cv=none; b=h3/HUUATCVEk/JXQJQTv8KUjSBoVKbFsgrAk2sWAxp9CI3i7tgN+yPuis6p/gv3vGF3m/O I3JLknRiNNOX5EG9m/8gHkWxVIot0y/vb6jJ+89LAgSWE7f0tLf6fAiuENu23c9L3KBqCZ A5BR1egvDsUvSfjuYdDnCB+7mNR2gHr2P+c+NMTHnwGDVU7Tzxl/u98uXw01hqEweGpWed +2dnkg5NEH9+/r6j+PXAajPcyJ1zgdAzSMWGnxkhv4ry89sAJGSt8E1/pdQBYCnv5gl/1R l69TiXh1DhcVCFBSHFxeqbzD7SvK18ZGnNU7zc52tDWz7/28211C1b6I+V6m5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jwKwzbyM; 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: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jwKwzbyM; 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: 90BC28921 X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: JmowqOFhYvu+ --00000000000026c64605ef7f1c14 Content-Type: text/plain; charset="UTF-8" Hi, Here is a patch that improves the ergonomics and thus hopefully the security for the recent changes to check evaluation for cells. Full details in the commit message on the patch. Best! Tom --00000000000026c64605ef7f1c14 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ob-core-add-org-confirm-babel-evaluate-cell-custom-v.patch" Content-Disposition: attachment; filename="0001-ob-core-add-org-confirm-babel-evaluate-cell-custom-v.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lbie2lsa0 RnJvbSBkYTNhODhlMjkxOWVjNWJhYzYzMjhkNTVlYjk5YjMzNTJmMjViOWI0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUb20gR2lsbGVzcGllIDx0Z2J1Z3NAZ21haWwuY29tPgpEYXRl OiBTYXQsIDEwIERlYyAyMDIyIDEyOjExOjE3IC0wODAwClN1YmplY3Q6IFtQQVRDSF0gb2ItY29y ZTogYWRkIG9yZy1jb25maXJtLWJhYmVsLWV2YWx1YXRlLWNlbGwgY3VzdG9tIHZhcmlhYmxlCgoq IGxpc3Avb2ItY29yZS5lbCAob3JnLWNvbmZpcm0tYmFiZWwtZXZhbHVhdGUtY2VsbCk6IEFkZGVk IHRvIGNvbnRyb2wKZXhlY3V0aW9uIG9mIGNlbGxzIHNlcGFyYXRlIGZyb20gZXhlY3V0aW9uIG9m IHNyYyBibG9ja3MsIGl0IHdvcmtzIGluCmV4YWN0bHkgdGhlIHNhbWUgd2F5IGFzIG9yZy1jb25m aXJtLWJhYmVsLWV2YWx1YXRlLgoqIGxpc3Avb2ItY29yZS5lbCAob3JnLWJhYmVsLXJlYWQpOiBv cmctY29uZmlybS1iYWJlbC1ldmFsdWF0ZS1jZWx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VhdGlvbiBmcm9tIHRoZSBgXFxbb3JnLWN0 cmwtYy1jdHJsLWNdJyBrZXkgYmluZGluZy4iCkBAIC0zMTgwLDExICszMTg4LDE0IEBAIHNpdHVh dGlvbnMgaW4gd2hpY2ggaXMgaXQgbm90IGFwcHJvcHJpYXRlLiIKIAkJICAoc3RyaW5nPSBjZWxs ICIqdGhpcyoiKSkpCiAgICAgICAgICA7OyBQcmV2ZW50IGFyYml0cmFyeSBmdW5jdGlvbiBjYWxs cy4KICAgICAgICAgIChpZiAoYW5kIChtZW1xIChzdHJpbmctdG8tY2hhciBjZWxsKSAnKD9cKCA/ YCkpCisgICAgICAgICAgICAgICAgICAoaWYgKGZ1bmN0aW9ucCBvcmctY29uZmlybS1iYWJlbC1l dmFsdWF0ZS1jZWxsKQorICAgICAgICAgICAgICAgICAgICAgIChmdW5jYWxsIG9yZy1jb25maXJt LWJhYmVsLWV2YWx1YXRlLWNlbGwgY2VsbCkKKyAgICAgICAgICAgICAgICAgICAgb3JnLWNvbmZp cm0tYmFiZWwtZXZhbHVhdGUtY2VsbCkKICAgICAgICAgICAgICAgICAgIChub3QgKG9yZy1iYWJl bC1jb25maXJtLWV2YWx1YXRlCi0gICAgICAgICAgICAgICAgICAgICAgOzsgU2VlIGBvcmctYmFi ZWwtZ2V0LXNyYy1ibG9jay1pbmZvJy4KLSAgICAgICAgICAgICAgICAgICAgICAobGlzdCAiZW1h Y3MtbGlzcCIgKGZvcm1hdCAiJVMiIGNlbGwpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAg JygoOmV2YWwgLiB5ZXMpKSBuaWwgKGZvcm1hdCAiJVMiIGNlbGwpCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgbmlsIG5pbCkpKSkKKyAgICAgICAgICAgICAgICAgICAgICAgIDs7IFNlZSBg b3JnLWJhYmVsLWdldC1zcmMtYmxvY2staW5mbycuCisgICAgICAgICAgICAgICAgICAgICAgICAo bGlzdCAiZW1hY3MtbGlzcCIgKGZvcm1hdCAiJVMiIGNlbGwpCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAnKCg6ZXZhbCAuIHllcykpIG5pbCAoZm9ybWF0ICIlUyIgY2VsbCkKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIG5pbCBuaWwpKSkpCiAgICAgICAgICAgICAgOzsgTm90 IGFsbG93ZWQuCiAgICAgICAgICAgICAgKHVzZXItZXJyb3IgIkV2YWx1YXRpb24gb2YgZWxpc3Ag Y29kZSAlUyBhYm9ydGVkLiIgY2VsbCkKIAkgICAoZXZhbCAocmVhZCBjZWxsKSB0KSkpCi0tIAoy LjM3LjQKCg== --00000000000026c64605ef7f1c14--