From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2A2rMkUhX2NmxwAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 02:13:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gCvmMUUhX2OpzgAAG6o9tA (envelope-from ) for ; Mon, 31 Oct 2022 02:13:41 +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 7827DCA4B for ; Mon, 31 Oct 2022 02:13:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opJM6-00020H-2J; Sun, 30 Oct 2022 21:12:46 -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 1opJM4-000207-Tv for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 21:12:45 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opJM2-0001y3-Rt for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 21:12:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9DA4C240026 for ; Mon, 31 Oct 2022 02:12:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667178760; bh=OusfohE4wCxx8oLgJYZH2iR2rrJ8ajElA4XyzAKxYeo=; h=From:To:Cc:Subject:Date:From; b=M8wR2Uxm02TbI2sYVtkxE7YwBHGQ71D2+0jE+Lu+3eNpgyPyrwVHC+2n+5oAP6bO9 z11gCIRL9p0h1QE9Rf69KKIj7kLqm6fGFiPgq+t0JGawuPW46oGyq/2pMYPwTYNSCX cwtrVdvoHur6hpkcAvu6Y3V4yVitFo9WZDKftNXT//g+PJg2VAez0VeeL18nmOiHrB i9iUbAAUfiT9oQPd6x1DfB5+0n6AFwQeot69f285vJW3uL+lDxTJhFiRB9Eh1yxWRH 8nkEKarZXn8WKUFGBHnae2yijax4aqetcN/ERaBRqriJ7w3Ild6GBCO+Gt/1AdG22P 6WmyZ+QQs1sTw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0w9z0YQ0z6tmP; Mon, 31 Oct 2022 02:12:38 +0100 (CET) From: Ihor Radchenko To: Tim Cross Cc: emacs-orgmode@gnu.org Subject: 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)) In-Reply-To: <865yg1c7is.fsf@gmail.com> 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> Date: Mon, 31 Oct 2022 01:13:18 +0000 Message-ID: <87fsf4n6c1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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_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=1667178821; 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=9VWj1lXpNKwRUdGsiran9gJv5LdSbs5X5A6ukS+E/3g=; b=WjGT8lQLEvai7Ia5IQKHhlRBNYwuCM2cX0qRJFJMvDa6Xky4rAIuYwjVJpbl0fAy6/nL1+ +TZzHbkDcFiN/ZZJha+nKZAukhXTOqSUh0vmXublQKRuKG5AQG+ZTjrcgob/zUalJ2OPGB OtXkNo6GyYcA+pVSUywZvTwb9nhR5DPyIlVZzmlX49F5+O0EQ4RA2qaTouQBpFeNvfkAaw bDLUPGYWTZvj9a56BfSQedGMehtV35WNCMHV1pUMkJGtjlmNdZh/aSXoe90+ZKZJRIzYTK kAK3twAwt7iJm1C5uUJV4knsL5YoTwbil6+76Ovf82iPSWBRkPzBYsbSp2Z4ZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667178821; a=rsa-sha256; cv=none; b=lqDD+Mp5q81HIEOEK4NhlRMQs+AcaHmxZyWKyJNtRWAdMj0UCQoE/DzKk9/Od061QWTeTa NxxmlAcXH6heFb3ZN+o5inE8cc4DDLBT8UByZ+XAGu4LjvA2+fmtGbYNj8Y4+oqUWfjDVU 2CiG97dTBbr7aZq2bBisIm6FCago7wFrAGerBxv96NkrbM+EZe1kY8v080YxmIg6JhBe6F xXQSwWUwxTMRgz+cgyhVjiZ79CVRX+f42Gkloa1soHs2/5ilqZKaJ8iM56xKzGKjx+7i8c NPBIYzOXrNyZsIGc7EYcymOYGXgjfgjgCCXN6J7K9X0uzY+c5QOuZff5/wP4BA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=M8wR2Uxm; dmarc=pass (policy=none) header.from=posteo.net; 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: -3.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=M8wR2Uxm; dmarc=pass (policy=none) header.from=posteo.net; 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: 7827DCA4B X-Spam-Score: -3.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: oOeOmq0grE8o 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? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at