From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iHoUIMfAw2WetQAA62LTzQ:P1 (envelope-from ) for ; Wed, 07 Feb 2024 18:41:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iHoUIMfAw2WetQAA62LTzQ (envelope-from ) for ; Wed, 07 Feb 2024 18:41:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=V2Ogrtq+; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707327687; a=rsa-sha256; cv=none; b=ZafnKSTNrDJfYPESVywdHfmlsW33en3nQgnjCuOCMyDXjHxNym5N7O6BOgsXrNQ72MDNOy kyqb4kSNfnBByU6HPra4//gB9xAu/jg50GXIb3J3SVkvScweBk/T5rJw0/aYIWSahE7aM9 oeQBzdhbntkaEgoxRoJiyNMotgLMK6T132K2joIDOFheO19m97Ze9Z0b+W8m3Y1dQp6O/n qTJOQe6yRxJM/CHAZDjNXObFXVuDp+Kx25mqkitYmSpB2PHz4akio3sAFsQ/hH8AtraxL3 sqeYYbmkXpK0NNHr0xT8Z9hKZvu6Ofr/+jhTR6rVDKBZ6loCMiaHKzNBRTdx0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=V2Ogrtq+; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707327687; 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=8jD9XOTVD1v0QDiqfK2KiBqIlF5QmIApj5UzLqxdqpM=; b=VdNHNampuBKVLsf0+CAs8Xv0FtiKxOwsiuLs6u/mYgUpM0A7SOAdrunJR651B8NiZZvZpT WygSuGypxip6Hcis44yuN0uPizG9sbxQ+ql7cFT9gtDbLgUAU12RbSm3BT+OjCA51uJExP WDDjBhwiCMpQexYkcukAunSRYs+C0+3iey0RkrXWNEBf29y0uOrfRcA0UCC6pylCo5lxRD QA1RX+M9z23utcP5QjVWDupM1OaKFB7+RDrUDG83jzpWndB7QCeMb9zkNXVowBCUAWFk8E lcUTkgn3SKAar6kynHMkOZpTIW+DKJ0cJFSsWNOsgQcVx0qOWiVGLIF2UHscMw== 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 567BA72860 for ; Wed, 7 Feb 2024 18:41:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXlud-0006VY-0B; Wed, 07 Feb 2024 12:40:43 -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 1rXlub-0006Sj-5u for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 12:40:41 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXluT-0000jk-G5 for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 12:40:40 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4102d50ce70so140685e9.3 for ; Wed, 07 Feb 2024 09:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707327630; x=1707932430; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=8jD9XOTVD1v0QDiqfK2KiBqIlF5QmIApj5UzLqxdqpM=; b=V2Ogrtq+afGn9+0eIQbeh8lbl7bqyW0cX60OcwkNT+BVnG6e82k40tDNc5mAiQL+rS dUPtzZLvQzLqpvPgBRTv5tXhxgt9H4xlytRLbYJLZZF88LES/m98EXLjyYecLgtNdwb+ pQLxX5TqFY4Fj3pN3bvp+Gnu8gwYdnNFCDm+OZ9+wLst96hgfZmY6urM49dOvsEzpQbJ KzxX9aVuRxDV4iUQxAXbeOsMsJkB3qwCvFbYAbGMxNb1ze/37LWXnitBkYtXvYfpfVbd 6jSlqthgcpsJ74XjDaFQfkT4NT4QsMZgWkytezNyZ2nAjmInEHsrG96/WnZu6Wa+Gwwe CXjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707327630; x=1707932430; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8jD9XOTVD1v0QDiqfK2KiBqIlF5QmIApj5UzLqxdqpM=; b=IqQLHacAMlTyAgIXEVVeF2Cl8upC/+FX/CpFYnDSgz4uiV9q45sP6l8M1k5bk3CT28 +0TArfg72jYni7KxqxaF/KddE0p/qXSivrjw9MnQ7HY60Jc79tZaoui9dwEexURNOV6G aVdWnRi0Wbhumuf3fd1dqJovVV7C8se+lCZQI7cy726iyyaJDiTwjiMgm6S2MQOh56sg c33YHxqnxGgauOJDSi1biezEJRVousFO75vS4KLoT4Iir0lCuGKWZ2VAL/hMifGrRNcQ 1a/MxHxovq6uWnpDPSwrmYsA50Zcla5EI7R3o6miOlzdeRFogMUcsZ5J+lu8oLkDrxuz eiaA== X-Gm-Message-State: AOJu0YxoSc5Yc+EJOUvreHV/IEWl6EbbK56i+xYtTjgElcyiMPqVAqJx EUyiV3AIMUu9q/bjUUlLpX4VH2VuHdr8AUh/1q95jIqyX9q2CX5L X-Google-Smtp-Source: AGHT+IGrUTwSzhHEEiP4JKnRxzT49dtbbZ7Qwgwcr3HmH0w9NS8yv5YzXIiYebGoYgtc6Q8g3DAzlw== X-Received: by 2002:a05:600c:314f:b0:40f:dd0e:1ed3 with SMTP id h15-20020a05600c314f00b0040fdd0e1ed3mr4974312wmo.28.1707327630460; Wed, 07 Feb 2024 09:40:30 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUj5oPM36iseaynRmQH2zRZLsjpUFio/UsWEJ1wUk4VX2AuQoYXWgI4ExJY3mrtDaXb/FbtmtrMjrbo7dJ1aCizB8ul0sw= Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id x8-20020a5d60c8000000b0033b1277e95dsm1964546wrt.77.2024.02.07.09.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 09:40:30 -0800 (PST) Message-ID: <65c3c08e.5d0a0220.4479f.a348@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Wed, 07 Feb 2024 18:40:28 +0100 From: Bruno Barbier To: Ihor Radchenko Cc: Jack Kamm , emacs-orgmode@gnu.org Subject: 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: <87v870qmaz.fsf@localhost> 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> <87v870qmaz.fsf@localhost> Date: Wed, 07 Feb 2024 18:40:28 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x329.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -8.53 X-Migadu-Queue-Id: 567BA72860 X-Migadu-Spam-Score: -8.53 X-TUID: hKCj4do0zlcv Ihor Radchenko writes: > Bruno Barbier writes: > >> While the execution is pending, I'm using the same technique that Org is >> using when a source block is being edited: the result is left untouched, >> but below an overlay. The overlay is used to know where to insert the >> result and to display the status/progress of the execution. If the file >> is closed and the execution fails, nothing is lost, the old result is >> still available. >> >> If that technique looks safe enough and interesting, I can prepare a set >> of patches so that we can discuss it further and, maybe, add it in Org. > > Using overlay also sounds good. > > I am wondering what you do when there is no result yet or when user > edits whatever is under the overlay, > but that's just a technical detail. I don't think it's really robust yet. We'll see how to improve/change it. I'll prepare the set of patchs. Bruno > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at