From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wACxLsMG6mUmygAAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Mar 2024 19:26:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wACxLsMG6mUmygAAqHPOHw (envelope-from ) for ; Thu, 07 Mar 2024 19:26:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PdsuhYI3; 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=1709835971; 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=pribVQiqqvbKTO0aeiqkQvcfjKnPuKebRKieL4g0PHg=; b=mCQqAwCgfb9KlC+5HxKh1C1/ssXeNx8j1aam87ADu+eJdofwmrp5rMixdOXx5DBAENK9Kb NOqtbcBtd/8aWoDX6XF+kKZRkXEQUcQrJhSxs0Hg/4Zpc+rPjY3/QE9AV2iMqnSHMrQEwy f74Vx8lW4swoFhxetsnWxE/EA6xUEi44YJVOvFDtVmEWnBzCQXXDPzVLzQxv/87Q5MJvQl GmoqMox82b9/TiKrRoHFfBn3MLcLoi+TbCRsNTKe6Kn58r3j2q09Ydq65CC+8NTjOMCBns 2QF0R1RBqoG3TgXHHWUdMS6czUkoQ5OQk0mxvZ5Cx9/rkxAkzosNa8nolSOuhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709835971; a=rsa-sha256; cv=none; b=Q9xG4FzK8KxkPDST2z+LM97x2ukWsslfwfgAUHlndUDjIwsz7fOc+5/zz/o2Ud7zDvVeoN e6lgZ8SUydi3nRjviOlzw8jCZHXRl4mTMe6F8gOPHs1c5k7AG3zbd8CzTlNpF30uuIo/4v d73gYuPBysGzcLZkABJML6O0yTo4+R2bsyqgTALf99K9zgHIaDbPzTnncdAZQriiwY7eRF QypLmMFUQLy8PG3iCFldEjzvhGfIyZ0MNQCJY8bpP+dmdNSeiPjq2aVbT14kSWglvph+yT 5yh7+XQ6k92cps1QLFTFg3AxuIdlXFs6X2HC5yUZcNI/XgRUBHd/FcmZf0bkmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PdsuhYI3; 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 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 3984247FE7 for ; Thu, 7 Mar 2024 19:26:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riIQy-000091-RM; Thu, 07 Mar 2024 13:25:36 -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 1riIQx-00008Q-O0 for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 13:25:35 -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 1riIQv-0000DS-Um for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 13:25:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 880B1240028 for ; Thu, 7 Mar 2024 19:25:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709835931; bh=pribVQiqqvbKTO0aeiqkQvcfjKnPuKebRKieL4g0PHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=PdsuhYI3EiklWXXFs3+8eaVTk8jub0c91+b22NDLzEdHA7+tWI2IsvvFAhb8IpV/g h9pykRMjA23rpIIPKmtXnI6Faf3WRkTxkDLyUPL0Qxaxo+TTN00fjgRu+g1qeYOI/j hd3NLmSQny+iAagWzF3EJPpJBZOu+fc/O0nvNKw+6ZlFFKxmmDAyjag+Jca/AakuGy jnUJfd0IlAgD7Fe39ppwf0lpR3kgARZw5CnXAh5bh1J3IZJAbXqu+bhs2Vv4JUWkRQ xZNqQt5MFDytrP1QcbzXdwwTjS5VlKo7yaPaqwqUpkdxrbB5QxE4dIEPPXzDtFMtB6 a0Pg7m5vp2udg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TrHmB57vpz9rxB; Thu, 7 Mar 2024 19:25:30 +0100 (CET) From: Ihor Radchenko To: Bruno Barbier Cc: emacs-orgmode , Jack Kamm , Matt Subject: Re: Pending contents in org documents (Re: Asynchronous blocks for everything (was Re: ...)) In-Reply-To: <65e9f49b.df0a0220.11103.1c10@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> <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> <65e9f49b.df0a0220.11103.1c10@mx.google.com> Date: Thu, 07 Mar 2024 18:29:33 +0000 Message-ID: <87ttlhki9e.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.97 X-Spam-Score: -4.97 X-Migadu-Queue-Id: 3984247FE7 X-Migadu-Scanner: mx11.migadu.com X-TUID: b6SUpXf+jIOJ Bruno Barbier writes: >> 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. Thanks! I have some minor concerns about implementation, but you clearly demonstrated the things can be working in general. Let me now zoom out all the way down to org-pending library design. While reading the library header and `org-pending' docstring (btw, it should probably be a separate library, not a part of org-macs), I felt confused about terminology and also had d=C3=A9j=C3=A0 vu's about what org-= pending does. More or less, org-pending implements Elisp asynchronous process control, but the processes are associated with region, not the whole buffer. Hence, I feel that we should adopt terminology similar to the existing terminology for processes - process filters, process sentinels, sending signals to processes, etc. And similar API. Also, I am not sure if I like the idea of exposing raw PINFO alist and mutating it. In particular, I have doubts about mutating CONTENT. What we might do instead is implement PINFO as struct with custom accessors/setters. WDYT? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at