From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yF2nHnXE8GXEaQEAqHPOHw:P1 (envelope-from ) for ; Tue, 12 Mar 2024 22:09:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yF2nHnXE8GXEaQEAqHPOHw (envelope-from ) for ; Tue, 12 Mar 2024 22:09:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=cassou.me header.s=dkim header.b=IlRITCUG; 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"; dmarc=pass (policy=none) header.from=cassou.me ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710277749; 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=zX77/twj/yDJAxiu6T7XVVRx68xpIxkc2LKcoLtcabI=; b=jDMa7yHaP4kTgH1M5VKOx+CesjW+qCeI6DRGKHm9+ZdYPcIl5z0jZAMo1N7N5KqWMfim6U vQluJCwQ7U7tkhQ3Hit3QvOFk9ANakBhmpxqxgeDPaZQd5B4ZTl2RaN7kxubHBseDRcL+z mpLjNtoOanp5XgpC3FKKADFLAY88JJCCSkZs4FXPdVR7jpZslaCA3hLDhwCdw1sbWqQd+r ETEj0/+8G9X5OTddkzAsmNz4VwcdgBBKpVAXYN5/iUSXLkGcgurMK2v2bYmu32Vs919b+g OGEBfRWoFlTkErUgUmIuF6oVAinAnE1UrL7ErIGIo9Z9OS3VY8Jdi1PQwAS5Nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=cassou.me header.s=dkim header.b=IlRITCUG; 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"; dmarc=pass (policy=none) header.from=cassou.me ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710277749; a=rsa-sha256; cv=none; b=SZRFXRAiqnAaHpH+SggSR5BgUvzJloBcvQA5RQw6sU8SRUNS5Kz7uMuUwq/aejM35XD0YG liSPVKasifFMlWg7sI12Z+0wfOum50cTkjShEkOiRXnonxvVh2IC0geaWgqU8I3H4CFt9V hjOPN4K52uiTW8PcjQe0x/iM/8ZPb3ktbEJfO6FJm01P+5pre7DtoMyc7/GY9bbGN0723N P30EeQTcBUwPjBZ6wxHGGNV/Qx3DmOehJq/KhDMSetS9QSouoXx5A6iMotoFPpsIpbQYPZ TIqnT2pgHhIZouBKTJkE59Xuk4NNlGaWMv1A33BcPMcC/qFjPDVXyfAZO7t8Ag== 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 37C9C339E3 for ; Tue, 12 Mar 2024 22:09:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk9M4-0004M6-Hw; Tue, 12 Mar 2024 17:08:12 -0400 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 1rk9M2-0004Lq-RG for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 17:08:10 -0400 Received: from mail.reprendre.net ([193.23.30.35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk9Lx-0006D4-Tg for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 17:08:10 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C53E52C1CBC; Tue, 12 Mar 2024 22:07:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=dkim; t=1710277675; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=zX77/twj/yDJAxiu6T7XVVRx68xpIxkc2LKcoLtcabI=; b=IlRITCUGPUkoPZ7sGFSEFtQEhnN6zKPT0ycME2W+t8jCPxDwYBLwzYKvxus3GgK/fdwKfq ZNju0N3t2eGqFXK7071cEiSyT1mz5fiJEI6MHBiSHjRtIgRM9G8D4Uxjtnz4Ez5qQUjnzB 2Cupl4CMVROrI7g3W3kKaGdsa5CpvpSqYj9LKv78op/KzEZwKsYyynXJ1A58UAv9cycQZG 970pXZ70+f0KFuOnO4teDzz5LOSaZnssTE1SrIUoYCZZrEKTxB7P9R5vp5Ur8OtYX1OqxL jP1K05oWhsCEgWPzwBZCwX8tjpyrLdfByiwmPL9q6ncQ+ZUuxOOdAn2fpivQ5Q== From: Damien Cassou To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)] In-Reply-To: <87h6hbej82.fsf@localhost> References: <87zfv7kg0p.fsf@cassou.me> <87h6hbej82.fsf@localhost> Date: Tue, 12 Mar 2024 22:07:50 +0100 Message-ID: <8734sv5fbt.fsf@cassou.me> MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=193.23.30.35; envelope-from=damien@cassou.me; helo=mail.reprendre.net 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, SPF_HELO_PASS=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.63 X-Spam-Score: -6.63 X-Migadu-Queue-Id: 37C9C339E3 X-TUID: JGHwJYyk+4TY Hi Ihor, Ihor Radchenko writes: > Thanks for the patch, but it is not obvious that skipping src blocks > that cannot be executed is always a good idea. Consider, for example, > that some blocks are used as input for other blocks. Then, failing to > execute them means that other blocks may have unpredictable side > effects. I don't understand your position. Without this patch, executing `org-babel-execute-buffer' will just crash if a block can't be executed. What problem can skipping those could cause? > May you please provide a concrete use-case when skipping some src code > blocks is desired? I use text-mode blocks to represent output of bash scripts as in: #+name: repo-test-check #+begin_src sh :exports both :results output raw :wrap SRC text git log --oneline #+end_src #+RESULTS: repo-test-check #+begin_SRC text cfd2b (HEAD -> main) Empty #+end_SRC The second block can't be executed because no `org-babel-execute:text` function exists. Best -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill