From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OASlHnQbml9bSAAA0tVLHw (envelope-from ) for ; Thu, 29 Oct 2020 01:31:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CCF7GnQbml/QVgAAB5/wlQ (envelope-from ) for ; Thu, 29 Oct 2020 01:31:32 +0000 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 E9B2E9401CD for ; Thu, 29 Oct 2020 01:31:31 +0000 (UTC) Received: from localhost ([::1]:36452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXwmn-0003vw-AS for larch@yhetil.org; Wed, 28 Oct 2020 21:31:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXwlJ-0003pz-F3 for emacs-orgmode@gnu.org; Wed, 28 Oct 2020 21:29:57 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:34829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXwlH-0007Uy-RT for emacs-orgmode@gnu.org; Wed, 28 Oct 2020 21:29:57 -0400 Received: by mail-pg1-x52f.google.com with SMTP id f38so1018348pgm.2 for ; Wed, 28 Oct 2020 18:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C0Q7AzLUVLZKzM59ZSx9jft93ZU20um7DBPngSqjenw=; b=MrDpcw9Dmx/r6Kx/QgYbX5W3ktUurWwEnN40PEzVlyDplnF6SiauN5nz0rGV8tpHZC t0LPAFJQXYCweCKTGcX+9F9M2p+YwZ92iRmh/O8Om+w12qZeLSk0Bo4xpWlIoCyeLQP1 oHdHfHe/N9IIcCGKXxhEEmwQ68N4k2k2ffjvdnhj6P9R8sBN3MeLzI5ZkdK2mcJdbFm8 hT/XiTmJcdYMz9uZan0FNusRfZxDkEMS9mwVMiSiA6SpNoY8mHryFKC3LjHmdbjPKcyc xHzOLDojvE6g1CG/EhINnwB3jbX/Wv9NnhTPUYx0H5fLY4GzEz0QQBswrX77QzLkKgcF yuww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C0Q7AzLUVLZKzM59ZSx9jft93ZU20um7DBPngSqjenw=; b=Ee4KELioohnKzxSnX10Tvwti8x7Icff7Ykhx3bhK3uibB13yC6u0GMn6+mFtTn/KoF jfN3S/BkFabCxrlq49wwgLQdmaUq0bgSab61/OeCWo/SqtusCf9i6WGcT1Ul76jeu+j/ 12jwsxKV4xUFn1oyhZ5IbteVfmyV1NlbyMNxj1QXj6E0a1ysiyIfdX0r+4SUBfg3sxIa q/9cd8tZ23u3wSwlI2JOFVYshpcSZL0JfShkulltvza3G18r/gjrPUTBEhljOkuHlJdi uvLrMqrFx4QuLw2FEkzwlCLutqEMOZ1egy0q34dDvYlyOY2HuYkp4wSe1Zd8+uknJFkL kTsw== X-Gm-Message-State: AOAM533aNBBDmwxtTg3geI7gcIelVuTyoSP+X9cOasnIbMAp+lP9PAQt Ra2wMs8T3z7ZWDeAr+gfvPU= X-Google-Smtp-Source: ABdhPJxWK4d9vnKN+BCj+E5iEpLwQSPGd4pRc8en+k7XOve6VQWFFLsPC3xr2rIDWb5kyY0rP0d+Xg== X-Received: by 2002:aa7:858c:0:b029:160:b5d:a526 with SMTP id w12-20020aa7858c0000b02901600b5da526mr1758861pfn.64.1603934993930; Wed, 28 Oct 2020 18:29:53 -0700 (PDT) Received: from ?IPv6:2600:8800:7c85:aa00:ecca:ade9:bdde:61dc? ([2600:8800:7c85:aa00:ecca:ade9:bdde:61dc]) by smtp.gmail.com with ESMTPSA id a184sm828219pfa.86.2020.10.28.18.29.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Oct 2020 18:29:53 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Confusion about org-confirm-babel-evaluate's behavior while exporting lob calls From: =?utf-8?B?5ZC06ZSQ5oms?= In-Reply-To: Date: Wed, 28 Oct 2020 18:29:49 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5A8F4FFB-14DD-4577-99B6-EF557074DEC0@gmail.com> References: <5362C0A0-632F-4C87-8FA1-915F0F53D8B8@gmail.com> <871rhivb5l.fsf@ucl.ac.uk> To: "Berry, Charles" X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=ywwry66@gmail.com; helo=mail-pg1-x52f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" , Eric S Fraga Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=MrDpcw9D; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: QNRKogelPTdj The author explained his motivation for the commit in the mailing list = before it got applied: > That's because lob calls get wrapped internally in an anonymous > emacs-lisp source block that then feeds through the result from the > actual call as elisp. The attached patch should suppress the > confirmation for the wrapper call. To the best of my knowledge = nothing > dangerous can happen with that evaluation and all confirmations for = the > call stack down from there have already taken place according to the > users' setup. If I understand correctly, executing a lob call would trigger two user = confirmations in the past, and this commit was meant to suppress one of = the two confirmations. (I may be wrong since I am a fairly new user of = org mode.) Now there is no confirmation at all. IMHO, there should be = exactly one confirmation ideally. But you are right, I should just copy the author on this. Thanks, Ruiyang > On Oct 28, 2020, at 10:26 AM, Berry, Charles = wrote: >=20 > FWIW, it doesn't seem like an accident. You might ping the author of = this commit: >=20 > $ git log -S "(let (org-confirm-babel-evaluate)" > commit 56bf3d789146fcd3c9f82d875de28c394fe593a0 > Author: Achim Gratz > Date: Wed Apr 10 20:28:31 2013 +0200 >=20 > Babel: avoid superfluous confirmation for internal wrapper >=20 > * lisp/ob-exp.el (org-babel-exp-results): Suppress user = confirmation > of the emacs-lisp wrapper execution around a lob call. >=20 > * lisp/ob-lob.el (org-babel-lob-execute): Suppress user = confirmation > of the emacs-lisp wrapper execution around a lob call. >=20 >=20 >=20 > HTH, >=20 > Chuck >=20 >> On Oct 28, 2020, at 4:32 AM, Eric S Fraga wrote: >>=20 >> On Wednesday, 14 Oct 2020 at 16:18, =E5=90=B4=E9=94=90=E6=89=AC = wrote: >>> I have org-confirm-babel-evaluate set to t by default. With this, I >>> expect to be queried with the execution of every code block or lob >>> call. However, this does not happen when exporting lob calls (to = latex >>> for example). Here is an example: >>=20 >> Confirmed with fairly recent org from git with >> org-confirm-babel-evaluate set to t. Does seem a little strange. It >> doesn't bother me much as I don't export org files that I haven't >> created myself but it does appear to be a hole. >>=20 >> --=20 >> : Eric S Fraga via Emacs 28.0.50, Org release_9.4-61-ga88806.dirty >>=20 >>=20 >=20