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 KLtLEmPxXWMsYgEAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 04:37:07 +0100 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 aEY6EmPxXWNMHgAA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 04:37:07 +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 0463088A5 for ; Sun, 30 Oct 2022 04:37:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooz7g-00065o-Gl; Sat, 29 Oct 2022 23:36:32 -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 1ooz7e-00065Z-83 for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 23:36:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooz7Y-0004nn-6D for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 23:36:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 98F43240101 for ; Sun, 30 Oct 2022 04:36:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667100981; bh=n2kguudC1IpCK349DwK6eb12QLR9iqj2cgaBIhKoE7U=; h=From:To:Cc:Subject:Date:From; b=MXBs+w52Q2yzuiL+j/rRDSitOBKwN8FDsUICnrFrBYtXJ82B2+Zsdtk+ANccH8DWS /KC6Ha7JNFewJu6rJ5p8rUd8vMIMJWBYSD6GktdaeCc1lgmSt5h9fK9oIcBFVZTa67 OGx6QU0MbzM8C7/FMz10RuEo4Misex6G1oXv/rNtRdoWLIfw2phFlJvqyy1DlOjlqP nDywe8/YGwJdQrE0wjFPFD9FeaYIBQtj0MFCEz/5pv5KVpYYQa9FjaINln0EcfcRhC dcUjNTAPtW8Bp0iFV0EOVILRJ+ntpHCeFg3W5c/gnEviZDCLVkbRaE+2hf5ist80et atvgzUbZn/Piw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0MQD1n3qz6tm6; Sun, 30 Oct 2022 04:36:19 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [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: 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> Date: Sun, 30 Oct 2022 03:37:03 +0000 Message-ID: <87bkpuaso0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H2=-0.001, 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=1667101027; 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=I6Nqtl6nCHTPj9lVSqFgcVQvjt75UE6QNE0Ba61knCE=; b=fMUjxNb/BCcl2pLBfblXi1oEdJe7ckjwUw0e7TpUgf3ibmyxi/yZ0nS5gvOjl4G30wQV6O djUQrKf/m78HAvbChwrGRoKXQCjAjqWufQ6kcdpalchY6r3DgxgRuDMZtAqr/y/h5HiAsF 4YJFNTDOafkKnVIj0ZHVDpXOB+d/mL4EUTNgm23AXn6orQ6LkZm366LcPlRXWMIwCW7jpX m+WHEdbqmOFdEYuJ85RXqc0M0SX9bHFtwX9rvir2MQLrLU5A5yjiMOEDqwLksDP9tgOi3a QNZko5Z7Qs2r1HLl4UQkRh6Y2mNMvr6o/UgTvbm9tIpGGhkfofm2w5PXYT9B0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667101027; a=rsa-sha256; cv=none; b=XWn9TK7TvUa7E9Vz7cz7V+m9OLUFYemtiEnQx0uh7sLE/f40rs8JLw/1n3VOpf9/nmUMwt nhFCFulCHPynpN2quMu3tQi6fPPxvxgjlWM59V7H5+XMQ2hAEqQ5u1CH5GO4hY7dbbZaD+ qgkGhrY5v44ZfmhW1a6G4dfvEXgNOFOSKfXR54P9x3jfrL58qBKK9k834sBkcRba4kcAQs rODBZsY3t/lQ+WoS/6MyeFoJB4fiwU/IduxtMadMsJGqVprbEA4Jim9Nn9RZjnov8LUe/9 VHL2fFLgTEXjenhMtxn4HsNVFnAkY98kxKgVavIPDnGHD2Ax/koxh3QHW2ZNSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MXBs+w52; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MXBs+w52; 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: 0463088A5 X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: vqXnRaWrDXTr Max Nikulin writes: > I agree that stderr may be important. I would not mind to have a buffer > that combines both stderr and stdout (maybe fontified). Despite order of > messages in separate streams is not strictly defined, it still may shed > some light on the reason what went wrong. I am not sure about the right approach of mixing streams. What we currently do is directing stderr to a separate file. See `org-babel--shell-command-on-region' and `org-babel-eval'. Also, note that our error display code is not only used by shell scripts. Also, by other interpreted languages like python. And we use compilation-mode, which provides reasonable fontification in many cases. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at