From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YCxnAvf36WUe5gAA62LTzQ:P1 (envelope-from ) for ; Thu, 07 Mar 2024 18:23:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YCxnAvf36WUe5gAA62LTzQ (envelope-from ) for ; Thu, 07 Mar 2024 18:23:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FOXoZ5sm; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709832183; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xyxDvBXBxSxhkQay9OQ7KoqqUPXcwVNXyKlz0mDPjdY=; b=aM88XGNdL0ps1CMlueydfcV89B+ohOmFn/7n8ybkVSpitiYDh0/K3vB+04ODzPY5itOvTs afCCgECC38ZnFQvX/7YB+bBB3oqCc/MJE3m3V3HXNvyI3Z54B+AokZvapQ703r/ShJK7QY jdSHuEEA2NZDPtX0EfYX9+INPVxwYYlOt1HNs1o/tSdxfmyuzzoMez38RU7BLNnGF9GYWB gMnyME/fU5rnGHVHwxAOpvr3dcqX39FgrVFjRaZ0tyIou7vk6rlqRmrwNsPC765UCq0xYL bWK+w7QEIDxFv91REAsyGJS+mfWbVF3VA9osZ5xZypIifurXv4i4iScvH2i16w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FOXoZ5sm; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709832183; a=rsa-sha256; cv=none; b=TJT52yHnKLFXPZI8C7lnm0HhobqErLiM9qS5HEIpAg/hn5Is50zlV8SaFktmmuN4RMHFgF NOxGwiO5BNfF4J4ErZjXU3BcQy83SixvKfCW9BnNTVDR2GLWap6NzGDRYpGsyxDzU8VxCQ Kv9JPAWTLIFtdDFZ2xjZLnCqvbGhXqqQN6k3Fg0kEYpjWNbITkIL6Z+FzGHzUgB4azOcvq GfYHvXXvQEgxvsgV+jKSkfO5Pdf2IFdwv4nn9lJjzywUjPVd8FJjqv5nJpLuAqydh3+ezq 3X3wbgpuYt9ratMBL2d01lL9cyZrTNlAxiGzB2UJgCkbuBRl8IbPsyke8rsd+g== 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 AE352441C0 for ; Thu, 7 Mar 2024 18:23:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riHEh-0001zX-MI; Thu, 07 Mar 2024 12:08:51 -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 1riHEf-0001zJ-90 for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 12:08:49 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riHEd-0001wr-Jz for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 12:08:49 -0500 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-33d36736d4eso782317f8f.1 for ; Thu, 07 Mar 2024 09:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709831324; x=1710436124; darn=gnu.org; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:cc:to:from:message-id:from:to:cc:subject:date:message-id :reply-to; bh=xyxDvBXBxSxhkQay9OQ7KoqqUPXcwVNXyKlz0mDPjdY=; b=FOXoZ5smK+ukcka+xkLefWGR3RLh++54vnLt6vu4DW0B5uKo8d3tQfzepHlFGgBaEI Xe69ZSMe8JufAQEUkRIrevkbfBbcKgYt97GebSsSXEUyc+EapPJKftQD2xq5jt01RUVf Rpje7LaKOA/YERsLf6O7QdveqRltv2d+mx0GwS9+hbD8T2jP0IyRBNc8NEJ9yPQgleMb +vi1pAe1xTBE8rsJMotH0rbmWidC+En38BvjQxREyMJQKcYuaaO5zJ900XLRr9qoYRCt rvsmxxVX8Pn/FjXQM0S+v/ykaTspTebr0zypk+XBHAFlXqDUJE+1zdzKN43JNgLKQ4p4 bxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709831324; x=1710436124; h=content-transfer-encoding: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=xyxDvBXBxSxhkQay9OQ7KoqqUPXcwVNXyKlz0mDPjdY=; b=JLp/AiJ61QARv/HZ798ySrusOaGRnqBauQt0Wxzv2TrRN0myTeqEwPYgQLkCmehM/E CFoUR6Y/9SIinu5YJVmZSZUszSpt6QdMMQCY941kdzKyCbVG3DheENcOQUzq9O1kU2ST 2+faDmWIWbEzwMydatqmZe3ijSpOKHNuxZduK5gK28dR/jJXGiafZBELupdN1WQB4JMN 5JCijmSNye+CBKZr6VTt6IsLdxzHQQiCgvLNxA28YczSKNYe0sl9dCQ/P4gccrCuBxaS jHaYSqjns+KOr5owzzVTa+cyOIYZ1+7Za60vKXvyYATgjBCAWkhxDq7R4vZLQS6iYEmy lZnQ== X-Gm-Message-State: AOJu0Yz1kwnT4nozLQL2M9H5mKp1L0lmO0UM8xy14MVdC9ebMM27zvKU 2mR0PkXJriyQVJ6Ti9snUlELrXFiinty/0H0/c2HSCaGfFTz9QoS X-Google-Smtp-Source: AGHT+IFeptca+fxXUYCObcnRY7bH2CdnHBSkpVPt2MPTTA+InQ2y7+xCcd3tnj3oofgCbVoY1PLJXQ== X-Received: by 2002:adf:e643:0:b0:33d:a8f8:66bb with SMTP id b3-20020adfe643000000b0033da8f866bbmr13126190wrn.61.1709831323717; Thu, 07 Mar 2024 09:08:43 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id q12-20020adf9dcc000000b0033e5c54d0d9sm3420902wre.38.2024.03.07.09.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:08:43 -0800 (PST) Message-ID: <65e9f49b.df0a0220.11103.1c10@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Thu, 07 Mar 2024 18:08:41 +0100 From: Bruno Barbier To: Ihor Radchenko Cc: emacs-orgmode , Jack Kamm , Matt Subject: Re: Pending contents in org documents (Re: Asynchronous blocks for everything (was Re: ...)) In-Reply-To: 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> <18dbe11968a.12c0800a31425096.5114791462107560324@excalamus.com> <65df0895.df0a0220.a68c8.0966@mx.google.com> <87edct0x2w.fsf@localhost> <65e30609.050a0220.89c06.1798@mx.google.com> <87a5ng7uoq.fsf@localhost> Date: Thu, 07 Mar 2024 18:08:41 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x42c.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-Spam-Score: -7.60 X-Spam-Score: -7.60 X-Migadu-Queue-Id: AE352441C0 X-Migadu-Scanner: mx13.migadu.com X-TUID: R5ek4neIDADN Hi, Bruno Barbier writes: > Ihor Radchenko writes: > >> Bruno Barbier writes: >> >>>> Overlays are not transferred when a new indirect buffer is created (for >>>> example, by org-capture, or by user). So, it will be (1) impossible to >>>> see pending overlays in indirect buffers; (2) user edits of pending te= xt >>>> from indirect buffer will not be prevented. >>> [...] > I now think that overlays are the right way; the /pending content/ is > attached to one buffer: a base or a clone; this is for the user to > decide. > > I will manually add text properties, below the overlay, to mark the text > as /pending/, so that pending contents will be visible and read-only in > all other buffers, base or indirect ones. > > Cloning buffers is easy to test. I'm not sure which scenario I should > use to test org-capture though. > > I'll update my branch with that improvement soon. > > > Thanks Ihor! > > Bruno Hi, After some work, some bug fixes and a few segfaults (using indirect buffers, see bug#69529), I pushed a new version. The main changes are: =E2=80=A2 Handle indirect buffers: the pending content belongs to the buffer that started it (using text properties to mirror overlays). =E2=80=A2 Use the fringe to indicate success or failure. =E2=80=A2 Describe the pending content (past&present) when the user clicks = it (pending, success or failure, time, duration, log, etc.). =E2=80=A2 Improve the logging API and provide examples (may be used to coll= ect stderr for example). As before, the org file describes how to test it, see the file [scratch/bba-pending-contents/my-async-tests.org] (direct link below). Comments, critiques, ideas, corrections are most welcome. Thanks, Bruno [scratch/bba-pending-contents/my-async-tests.org]