From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 oI57I95q42Xp/AAAe85BDQ:P1 (envelope-from ) for ; Sat, 02 Mar 2024 19:07:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oI57I95q42Xp/AAAe85BDQ (envelope-from ) for ; Sat, 02 Mar 2024 19:07:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cQG79qFM; 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=1709402846; 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=A9E8GdXN9dh8FpWCk1R8XWqWM7iInpsmT4QTxDE5v70=; b=oc+98Hd2rbuU/rh7aiWmUREFIaBuhy0tMlYj8C7YgKkYgUFM9IggXpjmF65jQjRHfnOjMS CenDkgcyEZfYEMS7ihMSoaVDbiIVmsVpA3Ze13tGGdIRCxLVmApfe0tSIEksIMrqAEFdoT OP7a6vRKUZGHmkbhZPdqGwt1bSs+AkFLoCJPROluDsvOJQ1FKqagAN7ERuQwa8rUaNCCMB bjeXY8Yof3cdKxOCxDbZSMZgxHRDefa8KkQmDZqzmUmwvOoYN5DT3H8u3zCb36KUloCWoq MA58puwt0SgM+wxo86DrlKIFDrxHIBTDzkSr2u7HPAXgR/grPCbP8VwXoUnsBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cQG79qFM; 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=1709402846; a=rsa-sha256; cv=none; b=tBYNLJwQo1iyHW0aJox0ELp+skC1hwE/VekRIkqmSIAAXs+yByvlkMjmYDL7ArEOKr2PYO fYNYWtPbmHuIOGPkkdlkv4haMP8VJrOzcg5u6FwLfZLQwt0RRnB1J6b4W3t5EpBGpgtxBN xn35v8TWqsuh/pFNN5jFz12mTL5xJhIHgzT/nT13teI5y7/digSmvIHlH7dDanF74Soclp 6ALsGpd7Iz+dv0YDXKRvTTVAgRahSP2iI2fhjAlsLbZ/6B/hQpuxSsBYhJ/dI/hbNtLB6p Tmmv9ZhWQepef/OKJYlMFZMJwOw/5sYKR+FB9T61cSEjS3epKpeXnwMV6XYHBA== 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 47BAA40579 for ; Sat, 2 Mar 2024 19:07:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgTkn-0002K9-7g; Sat, 02 Mar 2024 13:06:33 -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 1rgTkj-0002Jt-Lh for emacs-orgmode@gnu.org; Sat, 02 Mar 2024 13:06:29 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rgTki-0001iF-2g for emacs-orgmode@gnu.org; Sat, 02 Mar 2024 13:06:29 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-412d67e4e91so3095515e9.2 for ; Sat, 02 Mar 2024 10:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709402786; x=1710007586; 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=A9E8GdXN9dh8FpWCk1R8XWqWM7iInpsmT4QTxDE5v70=; b=cQG79qFMUynSHt5H6GNpDHwtDErqmz/zgQZRiDg7t/O1ajaIduelUfWFkXrYFifVOE 0ElLAyGOJhHmP/VogFIC/ZJ31qYTPXfTQr+wYyp+Ez8pAz5g7Ie6mAbUZIUXhdMdkmCr e25WeYI3wqlCyUm1rNPPw64ickCXAdPePNU70x/5Awjew7gE3hu+dj0RkoQvRRhjEEYl 7DJfXLQRZyQMVfpqkjDW80t1bQE9+gD3im8IAqbi6hQaQhdgEELMyxTbG8kU4Nbpd1Hq XV9p0ywh/yxMD0Y1UlK+N9bGHswDFGf+u7DnIz5TS+urjarn6mfT5/Lypo1BXs5h70Yv 7FnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709402786; x=1710007586; 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=A9E8GdXN9dh8FpWCk1R8XWqWM7iInpsmT4QTxDE5v70=; b=vXwxUcpwCWrK/6CBc2/5lYdRWjs5wXGpc6BACvSBH7zddrlbHcsDuGCTR1a8afvcY5 ZwBW0LBWH9FoERxiq7Jg6kZJslM8IBcn/xA5iqtK4/FvICL6iMrMEPke5Ivbckv3wHqL 2PxfUUWxzScRe4eQk8CQWo6xkhT5TwPrSr3LoQNOeBIvh28ASVe1tXe3f3hi2qL+6InA IlMnM3XWTiwOgO/R/0tqYa3Eo5W7g5dq/TsMSL86TBG+lBEtLxobkELjIW1KHlgCPsDP LKSjpKgeN67WzBmfl1vde0SDAIwnqXlIriXi5y6Su3SXGbB2EG0njNsg5GQFXdMTYWBX 64kw== X-Gm-Message-State: AOJu0YxRWXUI2ihRXXofKKT4pfVC8KLrRnMUV80i3wB75s9EwxJ28f7e zYLSmO43k7eAvzf/hOcvmm9Twc9q1IeJgfCF3kKLJgkUzV0dZoj9 X-Google-Smtp-Source: AGHT+IG7mEENBOoHz6rs0UYZMTsAqsggsXKWCDINLRgZ/PbeJiphyqpFoJIm8BscIWkrOv23uFAxkQ== X-Received: by 2002:a05:600c:4ecf:b0:412:b457:6303 with SMTP id g15-20020a05600c4ecf00b00412b4576303mr4984616wmq.21.1709402786282; Sat, 02 Mar 2024 10:06:26 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id d22-20020a05600c34d600b00412d6357945sm2327876wmq.27.2024.03.02.10.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 10:06:25 -0800 (PST) Message-ID: <65e36aa1.050a0220.2a075.77a5@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 02 Mar 2024 19:06:24 +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: <87a5ng7uoq.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> <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: Sat, 02 Mar 2024 19:06:24 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x336.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: -6.56 X-Spam-Score: -6.56 X-Migadu-Queue-Id: 47BAA40579 X-Migadu-Scanner: mx13.migadu.com X-TUID: 69rKRlAiNMHk 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 text >>> from indirect buffer will not be prevented. >> >> If I understand correctly, you would prefer a solution that relies on >> text properties ? (I didn't leak the overlay details in the API, so, it >> should not be too hard to switch to text properties, except for possible >> conflicts with other existing properties). > > Yes, I think. Might also try to mirror overlays, but that's problematic > in practice. 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