From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QC8PBKUtX2OZhgAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 03:06:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GO4TBKUtX2O7gAAAauVa8A (envelope-from ) for ; Mon, 31 Oct 2022 03:06:29 +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 9267D26486 for ; Mon, 31 Oct 2022 03:06:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opKBk-0007QQ-Sm; Sun, 30 Oct 2022 22:06:08 -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 1opKBj-0007QI-3P for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 22:06:07 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opKBh-00008a-Fw for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 22:06:06 -0400 Received: by mail-pl1-x62f.google.com with SMTP id v17so6513917plo.1 for ; Sun, 30 Oct 2022 19:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=v3zeazrrzd5ENJ5I+pe/IFyh3un6YzF2XxxOMH2GJlA=; b=NqxdiViENAus2sUgY4HRbpCCx9fn+toTE3Al5K8rzjeMiq6wyf5QHjLr2jPWNCYsQt rxdIegCL8qYWBk9gR6vQbGs9kDIhuxvzFwukdnhZJ5QgHqkGnKL0bvdA7f2hXJ4IaH1F 1oJllp6W5AA4YYZPDF7I7WYcZCt47983kmTXbRmlMjMJfWiV5k1AEbL03S4gJSCXfYw0 JUKIs4n3WLYjJs/tF8QH26YREUB6Cpzz6AD8i7Wnacrpv03+13iG3LyY9EORxvWEnNA0 LBK/Y4gre2KF+7UMHmB+c/FQBmHdF4n59oUFMMyHJjWJylvIH/DeFB4po2/e381rqTl7 VccA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v3zeazrrzd5ENJ5I+pe/IFyh3un6YzF2XxxOMH2GJlA=; b=uMu7vVkcbsC/8sbPtDFYQweZBWgCpQL7gg56O8BsaVNpYcAmnvM2QdKrw5KdXhDdBj cOj9wtpgNYgu9Hk9dEVyeBeIz6aFcDOgQGLb9VefPpSW6+UFgMaAVqA5w8BGD62q84rY x9TPwLGYGMjRF5ZfGjk6US7/PCS1qtskRLREQHOzkzXn+EmYGEKafMYWbtSL1LCvHjwB Uj199PWSaRm4jSKon+6SYpVD28w/Swl3l8LlGfwyB0xsMYJISIeAeh4xM8ar7yC/tE4X lElRxmEas9rDT7C4vmbZvhenZmQzlYRxmxZrAsoD1pi+Vmj+PFOQL86mFd5ctKqRTyAo Tbcg== X-Gm-Message-State: ACrzQf04EuTeRcfW3Evsj3dQ0jfcIOgB3SN02J7KZUpPbwX9jl53vp+P QncfIvtYs2uHcpPIpN6f9GSEAiKN1TE= X-Google-Smtp-Source: AMsMyM4+u2JBLiCnA9oebDptZKynw0hRFRNNmai+qkzGUq3J2p9N6afLnUHKQ4E1MY8vwzChTMudzQ== X-Received: by 2002:a17:90a:13c6:b0:213:b01d:b94a with SMTP id s6-20020a17090a13c600b00213b01db94amr9998978pjf.12.1667181963793; Sun, 30 Oct 2022 19:06:03 -0700 (PDT) Received: from dingbat (220-235-181-183.dyn.iinet.net.au. [220.235.181.183]) by smtp.gmail.com with ESMTPSA id b7-20020aa78ec7000000b00561382a5a25sm3251528pfr.26.2022.10.30.19.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 19:06:03 -0700 (PDT) References: <87edvbysqc.fsf@localhost> <87r0z6j1b1.fsf@localhost> <87pmel68y6.fsf@localhost> <87o7u432tl.fsf@localhost> <87a65o15ut.fsf@localhost> <87fsffqi49.fsf@localhost> <87wn8lorc1.fsf@localhost> <87v8o4krel.fsf@localhost> <87tu3njmv4.fsf@localhost> <865yg1c7is.fsf@gmail.com> <87fsf4n6c1.fsf@localhost> User-agent: mu4e 1.9.1; emacs 29.0.50 From: Tim Cross To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Org babel API (was: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)) Date: Mon, 31 Oct 2022 13:03:06 +1100 In-reply-to: <87fsf4n6c1.fsf@localhost> Message-ID: <86sfj4bvcn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62f.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: , Sender: "Emacs-orgmode" Errors-To: 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=1667181988; 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=v3zeazrrzd5ENJ5I+pe/IFyh3un6YzF2XxxOMH2GJlA=; b=bF6f3xwRedt2K5g9N0RI8nO9XQ2N3+bd78FVCXGwuLYvYidK0jVlE6uNLNIYOAZ8myXN1G gf5jiLZujmRg/c5qA/tOa7E0e470oLojBLwsLjuQd0I8lO3sFPhkHyD1HBHY+/NhOaXbwO pbCWTTZeAMTf8zJjxgsSimP0QeWFoOmrs8UlH95Z7Mbj5gEbqKNssoB8FunL8VxN0q/9L4 5Q2pn3sESyJu33wUx0luMhD51+32F9xBGi4ixgL+HUhSqP4Nqs45/XudiscOHltBFe9KTk 9aQ+uTS4QpqOAHh9UuQAYAD1qAFjlFunC+9e5j26n21gwC97p7h6Ln9dQSX6HQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667181988; a=rsa-sha256; cv=none; b=a1MnfY7tFnbgt7ZKsLJumynb/uInlgn2JuPqWxgMvAXzEJ1SZTM625aV1G5MmsmZIYsmJ9 EnJSHjMqaf4t3LjdjPuG+f8x/5U0+L6MnGmG1eXfDH67UqWcyhDcOcr4Jc/fw9wud2Ot9O 09SZu3BKzdRo1wDyAqo8OBNX+frnPqH0B1u0H1YAQI1jXV+sasSAYI6dRHZ5Vadi+p0BCN jHQaSiBBH/WzWD11yS1cmFeDaXrg2Az7CxTGmg0i9WoBKvD10a6z7z8J5OhPhjNBB0UX2D p4LrHEn6VCg904F/SAYRg0HVCy/8arWtGExE1r176jraUDgn3mdT4PPgWB8iZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NqxdiViE; 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: -6.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NqxdiViE; 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: 9267D26486 X-Spam-Score: -6.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4dADqCpd8luO Ihor Radchenko writes: > Tim Cross writes: > >> For me, this is another symptom of our need to define a clearer model >> for babel processes so that we can get some consistency across the >> board. Such a model would likely also make it easier for people to >> develop new babel back ends. We may even need 2 models, one for >> interactive/repl based back ends and one for non-interactive/scripted >> back ends. > > We do have two models already. > We have some small bits documented in > https://orgmode.org/worg/org-contrib/babel/languages/index.html > > Generally, the defaults are implemented in ob-core.el. > Session API is in ob-comint.el. Shell command API is in ob-eval.el. > >> The 2 big questions I see are "What should be defaults be?" and "How do >> we handle the options without adding lots of new switches or suffering >> an option permutation blow out?". > > I am sorry, but I do not fully understand what you are talking about. > Which defaults are you referring to? In general, all the defaults for babel blocks, but morfe specifically here, deffault handling for stderr.