From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sFepF3164GacGgAAe85BDQ:P1 (envelope-from ) for ; Tue, 10 Sep 2024 16:57:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sFepF3164GacGgAAe85BDQ (envelope-from ) for ; Tue, 10 Sep 2024 18:57:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o0ad/b0E"; 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=1725987453; 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=Bglu71fyDoTtyB17JY3e9sGCVbGO3iyadK4rKhN16Wo=; b=hpe2M+XTQ3SQoqudTb8s27g43L0jmPcANr5sUySAzq8fipJnaUMwwKFSlH6Ewr/F88mFMl ilPI8Qq0LeUW32xJVDawmdk+XKDokUd1VVnM9/G6qb0M2GnZHoqBY+B2ub/7BcPUQ482z+ H7BXa1xZ23Y3MiUNa8H5xp3kA3Rtj0LoRBkiUp7B1MturZdnHVw2ZWNy+SqRmC75q1pGUH uCKzcUcLlfwWjIHyKh7KI8C5BnM7xBaBzcFfcUehM8ixWCew9j4rFfW7/Bzzb9427i273a YXpI4dUsYFoPLmLWqo2zRMEWpQDFXP5BiqIY0WAHAYAGvI4P+y7/ql6L3wjCKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o0ad/b0E"; 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=1725987453; a=rsa-sha256; cv=none; b=drFa5UAJuqIbPt88y5AEEA22xiMIIp4/Eh9XcNEcRWwtL9pw7oOtuCYuCP3mgJA2uot0RP frK7qGKcDtxWB27lizweHOIzibdeIBGFRNRjW9itCyjjR73v3Y/r4E8bZxQAJCMBqHadCU 3XhnE6TORoez02mW13Z4Ct2iZGxN2Pt0FUbUA2mjfSAtpMdu1YL6F0NocnTNzEROwHlkbm bNbptDg9Gx9YV7f1gUB32NkHhg9OPNAh5wmzkv/ldQLs9ZiLLvZwMao0EZ30mfO4aNu2qu LIz4jEgPdW8xXIdc9nbatdTjKj+xUEOJ71kgPPi9CjAi/olUZEAW68ycUfLoEA== 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 4338B759E6 for ; Tue, 10 Sep 2024 18:57:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so4B1-00082E-RO; Tue, 10 Sep 2024 12:57:15 -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 1so4B0-0007wT-7h for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:57:14 -0400 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 1so4Ay-0000AW-Fn for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:57:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 58582240027 for ; Tue, 10 Sep 2024 18:57:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725987429; bh=14cJ0gsfjfS+erbtG1gvYmmiQvnyNFrIdty94aeFuic=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=o0ad/b0ETZ3tNIPYngZd6+UucpIY1kAetAD15oqRb7HGzVaHW0W8cDZvGKNqKW/pB CDZiQKxxhBAEJSAjXJ9BFWp/nNJPK1xVcoR5Xx6epO6cvDLFPUjiYa7ZyFMM4Kb8v0 NrkqPIww9hZh5cKfCZLrHIAOakpTxPjSOgclUAdSe99a6Z61Mn9xiiu9LJ1ePu6vdt bYg5+ZwsCpTrlvmTp6oDYDbweUuF1CGv9Mz1EKFm8QNSUlziFFFsJ8l751wpQiYVH6 AnlFITZIfJ0y/33CnQsz95lVLYsWtzeyFj0U9zh7Q8Lx5OWIP5nr3WGiGkgHUcHe6v vrj/+Qg8t5b5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X38xw6NS2z9rxM; Tue, 10 Sep 2024 18:57:08 +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: <8734m8zejw.fsf@gmail.com> References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <66a8b73b.170a0220.383476.996e@mx.google.com> <87o75yhwnu.fsf@localhost> <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> <8734m8zejw.fsf@gmail.com> Date: Tue, 10 Sep 2024 16:58:35 +0000 Message-ID: <87ldzzo37o.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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 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-Spam-Score: -9.71 X-Migadu-Queue-Id: 4338B759E6 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.71 X-TUID: MKazdS3mSzfs Karthik Chikmagalur writes: > Another problem: this top level chunk no longer works > > (when interactive? > (let ((new (org-link-preview--get-overlays beg end))) > (message > (if new > (format "[%s] %d images displayed inline %s" > scope (length new) > (if include-linked "(including images with description)" > "")) > (format "[%s] No images to display inline" scope))))) > > since the previews are place asynchronously. It always reports "no > images to display inline". Should I remove this messaging, or find a > way to run this from the final async chunk? The code gets a little > convoluted when I do the latter. I am a bit confused. Isn't `org-link-preview--get-overlays' counting overlays? And the overlays should be created before async preview is complete, right? Or do I miss something? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at