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 ms13.migadu.com with LMTPS id OKacG0h64GYoTgEAe85BDQ:P1 (envelope-from ) for ; Tue, 10 Sep 2024 16:56:40 +0000 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 OKacG0h64GYoTgEAe85BDQ (envelope-from ) for ; Tue, 10 Sep 2024 18:56:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="N/U5CWXL"; 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=1725987400; 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=d0GZD+fH6ZDYOofT6Iksr6gJuQ5VoA2YVDxKCPORlH0=; b=uRA4eSvrmMnH36Wsxszoqkq277vnE+7HDarEDMzKxeKBJFP40LP1zjbczRctA8CgLtDDL0 T30DmaScyK4GjLh5fzAixYiBKdGGcdG1TlRi6ulmWCcg/H6KbsMbtzDCP2bmFXAt0Uxn7w 359JvgojsHcIeKElpf/+Dp83V97B6jXiSkx1Q/7avcNi07KL+diF2wf2J+pEhF8K0FjLsf W6ZpgjjY6OEPcUSqGFW96s2u/IXAetaWAW53xxiF0AgNRwXknYPz05xy3jcDW1+biGFKk7 o5h5z0OEIEV2pPHMIOOHY8s9NYlhfXFkx7l/vq5lR7gLT5bY645C2F/nzT6IUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="N/U5CWXL"; 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=1725987400; a=rsa-sha256; cv=none; b=MtSxeNCDvubaVnHQcywJe1y1mSQL4nK5oLhTsaJOy0ALNrwUxOirHb9QPli5fLGSnlBHo1 68H3XHMkTd2e6OlbTtUPMISy+rP3QhSrm1mnegUlNml89jlIKFPH6NCd33lD9Ly/+ivL+F LEryQI19UlHpElNWrmoJZnrY/d+3/dFS01DHp/iVp8gAhRjRHUlNEjYlifDCYm9EZBu0go O+Ge92rA/Wol3cEPsv4T8kJD8MiEPm1Qdgz7n/62whbCo/77GeWiAN9sGKd2Jn0x1psUTl HnXOgXFnDwP04kt1a8iCGXucnoYkl5EV2x1SnhhUaeA9azet+fikiJjo8LoJOQ== 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 3F7F5B735 for ; Tue, 10 Sep 2024 18:56:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so49f-00024h-2u; Tue, 10 Sep 2024 12:55:51 -0400 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 1so49d-0001ya-ER for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:55:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1so49a-0008U1-Vh for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:55:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 82405240104 for ; Tue, 10 Sep 2024 18:55:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725987344; bh=oz7Pw13HORU7ajkQV51AC7aMY+nl0+ulHkpepZBMxTU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=N/U5CWXLXtGh3+Sg1eRhaEdRMTNUW5ri45Ig2MsBsB+yBh+rI/i83gnnVHk+UC4lP a5LmT6SmmNXCW+LCum+X07qIZhGGtZVKu3vlLVMPA4AzaOp1bogJQZedKS8VsB4N9P xCZ1JtQOmquZXZ0veVTouTMXPAOA3P0b8IOemWxkRH3P1wtniH59yoNrGDL6k8OIZt vqrsuKy3m2/tmkkAGW0LCFyHqSbC8RBhrqc8IlLXP9BYdZB49GP3eY2aqE0ubN6Aij 3sn38eXNtZKmH7T0G11Q8C7oxANPQooKv4tfv4hAQgTf1Tz+i+htMJI+XAbPW3aqTF 3jC6Z+1KYTSvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X38wH53rPz9rxN; Tue, 10 Sep 2024 18:55:43 +0200 (CEST) From: Ihor Radchenko To: Karthik Chikmagalur Cc: stardiviner , Org mode Subject: Re: [PATCH v3] Inline image display as part of a new org-link-preview system In-Reply-To: <877cbkzljq.fsf@gmail.com> References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <87v7zyyvm3.fsf@localhost> <87frr07xz8.fsf@gmail.com> <87cym38aj8.fsf@gmail.com> <87r0ajawgj.fsf@localhost> <87a5h77zb1.fsf@gmail.com> <87msl4wv8d.fsf@localhost> <875xrqg6cb.fsf@gmail.com> <874j70n559.fsf@localhost> <87msksabld.fsf@gmail.com> <87jzfwljkq.fsf@localhost> <87h6b09v4o.fsf@gmail.com> <878qwb8qw1.fsf@localhost> <878qw9ak6a.fsf@gmail.com> <87o74ypp3b.fsf@localhost> <87cyldzf3p.fsf@gmail.com> <87jzflqs2g.fsf@localhost> <87a5ghz6cg.fsf@gmail.com> <875xr4rcye.fsf@localhost> <877cbkzljq.fsf@gmail.com> Date: Tue, 10 Sep 2024 16:57:10 +0000 Message-ID: <87o74vo3a1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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 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-Queue-Id: 3F7F5B735 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.71 X-Spam-Score: -9.71 X-TUID: ZDlNsSaIKowB Karthik Chikmagalur writes: >> Hmm... Not sure. I feel that we are going too far. >> Maybe we should use org-pending >> >> after it is finalized. > > Interesting, I didn't know about org-pending. At first I thought this > would overlap with the org-async, the process executor used for LaTeX > previews, but it looks like this is for locking buffer regions and > orthogonal to the source of the async changes. > > This is an aside, but do you think it makes sense to merge org-async > before LaTeX previews (i.e. now), so that we can get feedback on its > design? The best test for the design is actually using it for things. If you have some feature you want to use org-async for, we can merge that feature + org-async. >> For now, my idea is to generalize the asynchronous handling - instead of >> doing it within individual preview functions, assume that preview >> functions are synchronous, but run them in chunks. >> >> If a preview function is not synchronous, it should take care about >> managing the passed overlay by itself. > > Yes, this is what I suggested. Even chunking and running the > preview-funcs on an idle-timer seems like overengineering to me, but I > defer to your experience here. I'll update the patch soon. Implementing async is not mandatory. Here, I am simply taking into account _your_ experience with LaTeX previews. And I do know that image previews may also take time when there are many images in the buffer. So, I thought that you are probably the best person to design such things :) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at