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 YCtADH/Z2WU48AAAqHPOHw:P1 (envelope-from ) for ; Sat, 24 Feb 2024 12:56:47 +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 YCtADH/Z2WU48AAAqHPOHw (envelope-from ) for ; Sat, 24 Feb 2024 12:56:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CcHxbSb/"; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708775807; 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=gZR+C7ohXl3a1GaOZPDlvUPqidFh2feh6hWKe4xc0iA=; b=DmZ0fI5sXoxvw6hc0/M25844XM7iktej7gPZoWQ+PpMNmXYA3mxe+6UCFdm+IZ0N8hpEhY bjm5DI71jJRLYFYFj8t6tswoJ1uknSfQAmfYoD09xQO4CsAAOI8A7AAJIkxPViYW85U5CB D1EiSoBqS4/uWrO4tqrdou8LUvjnawfHlGNKYNDm+3ULyTSGxSwAHHvOsnPyx3ip8AaIVD BXxc7QjlV0TWtfXrYZgCRQIGpSqyPd6M9aGIfw1W481GhNgf0REJn1Oeqe7WuVG1fE1kWh gEjFQidHm/aW+jylCJG3/TRS+qhPiHqCh1v+eSxG/MgbIquBkJS0EsCD686qQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CcHxbSb/"; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708775807; a=rsa-sha256; cv=none; b=eGIbh6BrxXqjltYDWzZC49GePb1hOtOLEbwmfdQedH1sgllVQOQ00ZnUyp/992yHeylR6V sIRUdasyuXZKTaAcWsOSaPUlYc1Pfx09qoBs4rnNkMMlqnBiuPZofbD8+GCyTRk9KJXEjU bv9HoD/1g/newDLPYtrwV11UObKQcKAsCB/wQJh/GerQpsXtSqesNvz0eeUx3qdSspLPnv 6OlPvTXDPT9LkQaKzqlGEbeisJD4DEZYdcVLgSaIh0pDH+bhrw8UPKqEtzot9l/+huRBYM 4VWt0TournzuuBFs4FyxhwR2vjErNIQpag4q+86LU+9TFqgHh6fdkIGLypBsoQ== 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 E07E632FBA for ; Sat, 24 Feb 2024 12:56:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdqdK-0005wT-Dd; Sat, 24 Feb 2024 06:55:58 -0500 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 1rdqdH-0005vF-8Z for emacs-orgmode@gnu.org; Sat, 24 Feb 2024 06:55:56 -0500 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 1rdqdD-0003Ig-BS for emacs-orgmode@gnu.org; Sat, 24 Feb 2024 06:55:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8D318240029 for ; Sat, 24 Feb 2024 12:55:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708775747; bh=J3c3WCUM0wJOec6Jj+2ToCzVh91Gac9EysJwnWS39h0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=CcHxbSb/TbRFBmkDNpF3EJtViXjD6QjXXQCaIwaqIxuGsS31Yx8N/WxqCHHSijDCD hTOvGw4rLvkXfrTBLnZ9g8rLvo1/8rlSTHqmZLFKRarX2cwHqplXPWOQk69ijU8mWx Ot3Bd1OVfEOEjlUL0VerUw6oZ24CggEyLaL0W6UtbxBY3t+eTJZ3MxsKLUDsHE5IUZ biinc1B3E+4BIfZqzrDf8TXsA/MlnzaZg/gn2e/Xlt1zjpoFj55CiVkMJOGHbGZ67w Sc3X+NmDONaFXWRcNfidqhgQMrR34e3XFxXVnMaep0ojipzjvUjbBo4/t/PRqW2Kys 6KrZsNTXqM2Sg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Thlh22Bk7z6tm4; Sat, 24 Feb 2024 12:55:46 +0100 (CET) From: Ihor Radchenko To: Bruno Barbier Cc: Matt , Jack Kamm , emacs-orgmode Subject: Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]) In-Reply-To: <65d89ca9.050a0220.757c8.6fdd@mx.google.com> References: <87o7d0mm54.fsf@localhost> <65bbb108.050a0220.b60fd.6790@mx.google.com> <87jznm8hcu.fsf@gmail.com> <875xz42rp9.fsf@localhost> <874jen8zec.fsf@gmail.com> <87o7cv9e80.fsf@localhost> <65c2875f.050a0220.caf6d.8291@mx.google.com> <18dae5cab1d.bf1c7563863897.4896289306902277373@excalamus.com> <65cfa0d8.050a0220.cb569.ce34@mx.google.com> <87frxohlgo.fsf@localhost> <65d61ec7.050a0220.999f7.a39b@mx.google.com> <87jzmvjs7m.fsf@localhost> <65d89ca9.050a0220.757c8.6fdd@mx.google.com> Date: Sat, 24 Feb 2024 11:59:32 +0000 Message-ID: <878r3axecb.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-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.42 X-Spam-Score: -6.42 X-Migadu-Queue-Id: E07E632FBA X-TUID: LFx79K3FKgMy Bruno Barbier writes: >> May you please clarify if adding the new code block parameter that >> defines custom execute function is something you want to add to Org mode >> or just a helper code to demo you main patch? > > Yes. (I thought about adding it in a separate request; but that would be > simpler to include it.) I have doubts about how useful such parameter would be for _users_. It is certainly useful for developers of new babel backends, but I do not see how users will use it. I'd prefer to discuss this in a separate thread. >> Error buffer does not necessarily appear on failure. When the code leads >> to process writing to stderr, we also display error buffer. Even if the >> process exits with 0 code. > > Got it. The current design adds the popup on failure; I should make it > more flexible to allow to configure a popup on success too. By popup, do you mean an overlay where clicking on it will raise the usual `org-babel-eval-error-notify' buffer? If yes, what happens if a user executes a code block, it fails, and the user executes it again without looking at the error? (Second execution may be triggered from a different place, indirectly, via noweb ref or similar). > But if the execution fails, I guess I'll need to provide some feedbacks > anyway, but I don't know yet how (asynchronous popups are not an option, > modifying the file neither). We need something more than just an overlay. Maybe some kind of babel execute history (in tabulated-list-mode buffer), keeping information about execution stats and stderr data. We may provide a mode-line or fringe indicator that will warn user if something went wrong with recent executions. Something akin compile-mode mode line indicator listing errors and warnings during compilation. (Handling asynchronous messages is actually a complex topic. It has been previously discussed on emacs-devel as well. See ) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at