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 sBhLHqQLIGOZzQAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 06:48:36 +0200 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 oOVMHqQLIGOG3AAA9RJhRA (envelope-from ) for ; Tue, 13 Sep 2022 06:48:36 +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 21869294F0 for ; Tue, 13 Sep 2022 06:48:36 +0200 (CEST) Received: from localhost ([::1]:42820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXxqc-0004Ov-Fb for larch@yhetil.org; Tue, 13 Sep 2022 00:48:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXxqB-0004Om-6B for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 00:48:07 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([13.59.128.245]:55772 helo=itchy-ceridwen.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXxq8-0002Hk-Ov for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 00:48:06 -0400 Received: from earnest-cyclops.authn-relay.a.mail.umich.edu (ip-10-0-72-105.us-east-2.compute.internal [10.0.72.105]) by itchy-ceridwen.relay-egress.a.mail.umich.edu with ESMTPS id 63200B83.16D09792.149E3CA0.1846008; Tue, 13 Sep 2022 00:48:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1663044482; bh=FYCWY0VXOb09IGWDyfTHPeLp9JfoQnPBeahKHWdDDIQ=; h=To:cc:From:Subject:In-reply-to:References:Date; b=UzwLcIyc6uIUg4X8ghkCuSohI2wGsFsBwP6FVv3QK0MGuG7LOWDPyyHWtkguj5l+V Q4ENfSol9it3TSo9JcpXb2In5xRGG0OJUiueunjhnheA71/Sj6Q7P5odrEHF9GkBAF j/V6EUjAS1gjFQwybmiLszbhHKLjhujSKSFyBJTncdisfDVvzhsimqi9DgUO4u3Iq1 Op9aCvAIaXQ1vYsr7Yz1+rsGMfgq3FuHn0CoVM+tLvMxT+bKZAuL+nZiWxNHJwyJS2 ef2uYJtFw8TV8GU7Gfdby0Or8eoPDc8NHUH/XBRSWGo4dQPKmDQPZqFDUb9WtvKLZm 3ROKT6sBPbNGw== Received: from localhost (Mismatch [85.103.37.149]) by earnest-cyclops.authn-relay.a.mail.umich.edu with ESMTPSA id 63200B81.D6FAF67.4D0EC13B.1160820; Tue, 13 Sep 2022 00:48:02 -0400 To: Tim Cross cc: Ihor Radchenko , Fedja Beader , emacs-orgmode@gnu.org From: Greg Minshall Subject: Re: per-file (or, really, per buffer) allowing/disallowing code block execution In-reply-to: <86r10g9ufs.fsf@gmail.com> References: <595135.1662491125@archlinux> <87zgfao1hu.fsf@localhost> <877d2ddrkn.fsf@localhost> <8735cyxonl.fsf@localhost> <1966694.1662990962@archlinux> <86r10g9ufs.fsf@gmail.com> Comments: In-reply-to Tim Cross message dated "Tue, 13 Sep 2022 06:38:37 +1000." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <589197.1663044475.1@archlinux> Date: Tue, 13 Sep 2022 07:47:55 +0300 Message-ID: <589198.1663044475@archlinux> Received-SPF: pass client-ip=13.59.128.245; envelope-from=minshall@umich.edu; helo=itchy-ceridwen.relay-egress.a.mail.umich.edu X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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=1663044516; 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=FYCWY0VXOb09IGWDyfTHPeLp9JfoQnPBeahKHWdDDIQ=; b=DVYWCYyDZWu5Y8ys2pQZdcwOOVFehjqW/7pKTQztl2w1SeEIBtnZtNXN3MT7e04npCnezN tkMwhEGQpGJ+hArPx7BeKlYg+RmcgSO5HmozRFLWkgdecQlPKRF9gYUWxuVK2f0TIGL0hI PLpdF6yabBt131gPxhlxltr3fvxpHWXOYy8htOHygGnASVBdfdHbHpd3NsICMoBeh1C11n j9JM8JmloQH8AC8l7r2Fgykv4s8UEOXqZWImBvTG6TaD5p8WUl2eHsAczPOQxM9ca+Z4mp ni0D69SFp/njPMQDCSjYzjn1TKpIycuaVzYZ1u3fjRZKwKwd4de+1/c3OJyeyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663044516; a=rsa-sha256; cv=none; b=Et8fegbqkeTy+fA7S5drvfdicqFBGnteF8vcw3TQryDErDM82qv/AIe8+BQyHS/CCjVWcA kxfceEcdfEd1eRWmxsLIG8IFCWmPbFYvQNSreKssV12baDU9v0CrD+WVx1hW6NLrta5dmm 9DPAneDpun2Vdk1r73HO66rt9Qoi/10ruUwTGP+vRBAM/wqdo0ZEqxxuG0oYUBDK6nzlOy xxAvQwRIYJJKyd6U3fygWNVA4mFWMzFWE4nrkmwKAO8w64/cTj6NyI8U2JuY1upvEnsGFa IBdjx9Eg+j2uB6omP6rueVchVjJyRZ3YSXJbf/YWqVllH6HzZfi9GoT7pUJeAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=UzwLcIyc; dmarc=pass (policy=none) header.from=umich.edu; 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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=UzwLcIyc; dmarc=pass (policy=none) header.from=umich.edu; 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: 21869294F0 X-Spam-Score: -2.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: n+0GBKUyOsYJ hi, Tim, > There are valid use cases for a configuration which does not require > user interaction (to answer questions on block evaluation), for example, > when you want to process many org files in a batch process without user > interaction. Likewise, I don'tg want Emacs to become too much of a > 'nanny'. If I decide the code in a file is safe and permanently safe, I > want to be able to disable the queries on that file permanently. I'm > happy using local variables to do this, though I would also like a > global option as well. sorry, i don't think i was clear. i wasn't suggesting changing the behavior if =org-confirm-babel-evaluate= is =nil= (either as a buffer-local, or globally). the trigger for prompting for "[y,n,Y,N,?]" or long/short some such would be if it were =t= (i think?). > With regard to long or short answers to such questions, I think the > default should be the longer yes/no, but the user should be able to set > it to y/n (i.e. same as normal Emacs behaviour). Ideally, this would > fall under the same setting as the new y-or-n facility in recent emacs > versions (replacing the old approaches like defalias). ah, i didn't realize there was this configuration possibility. that makes sense. thanks. > Finally, while I can see there is a use case for being able to have fine > grained control over individual block execution, I don't think having it > as a prompt is the correct approach. Once you have many of these blocks > in a file, that prompt will rapidly become annoying. When I've required > this level of control, I've found header arguments work fine and I'm not > sure the added complexity is worth it. last time i tried to export a file with no buffer-local setting of org-confirm-babel-evaluate, i was prompted on each code block. and, yes, it *is* annoying! eliminating this behavior, while "preserving a query", is what i find attractive in Fejda's proposal. i apologize that i'm not sure of the header argument override? but, still, i wouldn't argue for any new per-src-block-level configuration. cheers, Greg