From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UD/sBuyj4GZfdwAAe85BDQ:P1 (envelope-from ) for ; Tue, 10 Sep 2024 19:54:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UD/sBuyj4GZfdwAAe85BDQ (envelope-from ) for ; Tue, 10 Sep 2024 21:54:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BOtY9vty; 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=1725998060; 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=qK0LQNB1e6MXpK1MHYV9ta4QMrlhpQyMDpKQMfVjQTU=; b=Z4Owrp5r4Xb/Ev+9mEm0Bqhnjq5ICHHcl1yUAZNjHhLFvvDLgR+rPu/YQ9TFCSv9F+zSk9 wvcxamI7ASqkZwOg/v+Bb8tbz7mPQZz5V+ExWft4igXzeC2Euq/lpcbuO5rU8s6TKfDxMa 3TcbXts9WKgBaOEURWXCr4X6/dOwfN4PdwsuWI/Xep0RzSf+a4ulz4Jx7aICQP2cmkRT6d 46I4D2BOACCxkhwv+ihFCYngfGbzs75vor4h/0Qe60bIMMzCt+wHElsGM2ecggK4YL7bWN +FFjdo9+UZiDHahHygSMADnaKMJZlQh641xlzZVi3LjRlHejS1AJORnYWK8BPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725998060; a=rsa-sha256; cv=none; b=i9XXFkw+vPgRjeZiyQ/CP3owmxxSvGJjy+4d1WCHJFVVZKt1AM769IJi2mzJOJ/T5h54sH OKMJqpVEv0rx5do4nkI9pFLDCrQ96QcJZ4R2VXB+37Wff2ftCuWgJAitp7UGxFsBEzoeKS Cj1GICfapxMKEinQJODi4Z6oe+8QGioTsbrM++bfZQ4Momj7Rfd5Os1RZnMyFdVn827C7B WZAnSsKysSLWI+WnFLTMz8esncNB9Chqo0PBNIUJui2fQ6KU/Tx4TUINhuPUIVegL9MJfT xDYM+GQB0aDQn2K8/9SjlX2SGg6sd1sWPUL0OQ+WgFGrJy7IIG/27d0DpVwPSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BOtY9vty; 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" 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 CF67A7658 for ; Tue, 10 Sep 2024 21:54:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so6vT-0000bZ-KS; Tue, 10 Sep 2024 15:53:23 -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 1so6vS-0000VA-0W for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 15:53:22 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1so6vQ-0001rr-Dv for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 15:53:21 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2053a0bd0a6so12740765ad.3 for ; Tue, 10 Sep 2024 12:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725997998; x=1726602798; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=qK0LQNB1e6MXpK1MHYV9ta4QMrlhpQyMDpKQMfVjQTU=; b=BOtY9vtymLOL5P0F7nM1UfCp8QWZtLmy2k48bPQf1ONOimYhPszDcIEMznatBdOcvD TYZvHqXN474LTvzz/vSGM83tS1ZI75vFQy/hqMpdfYCg0cn6jmz8+lqPL8MQXixeIbZ8 tjSmevQUo0fOf8X7R8g49uEUJaJdO/vnjtHj+lfGMFtHCuYsdPqsF2SuD7iieeq3uFbB tg3W9+cAKKQIkrndos9SKurStC42Z5QQTEZ7NGbK8mcFTO8EhOq4BbfIaVwpdL8dD/FR e4gt1ytNXvOpLWdcBRtufHDCtBHtew6djVYyPphhAVHCKFG+rjajrE9lXJkjyKfqxDO2 rryA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725997998; x=1726602798; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qK0LQNB1e6MXpK1MHYV9ta4QMrlhpQyMDpKQMfVjQTU=; b=oVVjQBUnretyXVeNh+0dyG/+tvjIZVVn/3axmkGRq9gFtM0b9JZ4Z+tM31ZpDiSyoh XUVJjVMpTXTyR8eGV63kBqHbOJvW6FJ9wFg827tJOVy7BmD+iqSIegB71vFcHzRwZ3vP CyiJVpcQdtn7vd6bLLM6SLw+jVaDX4MvDbkIRWOMOWGJzCuMLwzcBXWBA9nLvQgGj7Wc l5pfxEBlrlpy7Er0O0is8r/nlfdXzsDuFad/fVCxMHCLAi7b8YxcNOOJF5cd2iaVRvVo k0GfuqgsrSJQVoONkaR+GpMS0t3dn/ppHDQnZbqRyfps1m2jcjpcK2duIHdY2kQ2GjvV EWzQ== X-Forwarded-Encrypted: i=1; AJvYcCWOtGuGOpnfX7h8ZSPgjMxOwU3N6HTEz8WOGTmHzyxMQOq5wqAowbGZ2hwvaaTknGitiBgbVO1j4231AjiE@gnu.org X-Gm-Message-State: AOJu0YxrzSMuLDkuEZszURx25JY0CdMtMF8FCGoiCjrbX5SDWaZG0qnb fNAFd17KoTQXqI2K3UUYJO9cACE8uHbN2aht+VCkjb9ydWYOHGx2Lnh0Ag== X-Google-Smtp-Source: AGHT+IHlzEbsKfV8Li5ULGGciz2RkpZCR6xFBCEk3L28rduB0tul3BCKtTS2+pPxU6TuZUOmsCAsOQ== X-Received: by 2002:a17:903:41ca:b0:206:9640:e747 with SMTP id d9443c01a7336-207521faf70mr8095605ad.43.1725997998167; Tue, 10 Sep 2024 12:53:18 -0700 (PDT) Received: from localhost (169-231-129-93.wireless.ucsb.edu. [169.231.129.93]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710e3380csm52291805ad.94.2024.09.10.12.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 12:53:17 -0700 (PDT) From: Karthik Chikmagalur To: Ihor Radchenko Cc: stardiviner , Org mode Subject: Re: [PATCH v3] Inline image display as part of a new org-link-preview system In-Reply-To: <87o74vo3a1.fsf@localhost> 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> <87o74vo3a1.fsf@localhost> Date: Tue, 10 Sep 2024 12:53:17 -0700 Message-ID: <87mskfxp3m.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x631.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, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.81 X-Spam-Score: -6.81 X-Migadu-Queue-Id: CF67A7658 X-Migadu-Scanner: mx11.migadu.com X-TUID: 5Rup68v3SWjV > 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. Only LaTeX previews for now. As you may be aware, the patchset also includes asynchronous pdf exports (using org-async), which makes a huge difference in Org's usability when iterating on a document and running frequent exports. >>> 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 :) Unfortunately I don't think I'm good at designing flexible async APIs, at least in Emacs. (The LaTeX preview system is being tuned for speed/lag-free performance, not flexibility.) I think documenting that a failed async preview should call org-link-preview-clear on the link is good enough for now. Karthik