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 0EzqIDeQ3mZzJQAAe85BDQ:P1 (envelope-from ) for ; Mon, 09 Sep 2024 06:05:43 +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 0EzqIDeQ3mZzJQAAe85BDQ (envelope-from ) for ; Mon, 09 Sep 2024 08:05:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mW6bsA3J; 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=1725861943; 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=ig9P5BY1UK4BpfzBiJ1Ynde8GT/fvs2DEYiQgZbfeow=; b=JZbI93z6hDY1LG/+gk+QrCKdhbD4/WG5McSwXQNxm44vJy5hsZRRJMUxAveit4jXCfKaHA QyDxY19AInXs6E1wfyPQJt33TLa8cWy+sl3cY6q/vhiMIdYmUxQOaFBdp0NXaCEdP6lYp/ ayik60VUnN66/TRDLjTceTKdzipb7MNs7Rmtr3icjTdA0ahxX4Up0QL1Y3qc6Gazpx5sHd oVXYuUXeH74sG+FxoLn12frx3hZLEZB8bSav1nqMKOvzp937w4IMvwZkoTqCQDrKjDLYMK HVNwAlnLKsO7uzJjZ3hpDyVQciXfv4nG8LateiDwDRDzF9AN9wqtOmpwO0dr+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mW6bsA3J; 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=1725861943; a=rsa-sha256; cv=none; b=C4wNDtoMJRe4asYBdF5u0JQO7YJS8F94BMzmzXuAeCrWvHNVtZf7o0yruhAiyxujOspG4D KAIM7oUb63z4HwzyLNyt5627+R0n+ODOfoMty/5Tury5Ei8TTk0VESWPNBAPQhjZJunR77 XoyCK6+yMYt+k7i86DpaNMerR0DYNTW1yQgE6CaBvofgAoYf2D7CfXNrwF2WoLcP55e7ZF 7Ba04QUPUNTytr01mgnypuCF+BbWVoeAMQaZNCSTtZG2ReesgloZd2QSF0wwPI2XRpwgd6 FXTMGfYMdTP2YpyMz+0AyyY3LstEn2fNo2o/XH/+tF0za5WohHjpm/ZFcECg+g== 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 5B0059F02 for ; Mon, 09 Sep 2024 08:05:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snXWQ-0005hS-MD; Mon, 09 Sep 2024 02:05:10 -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 1snXWO-0005dp-8N for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 02:05:08 -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 1snXWM-00026o-Cj for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 02:05:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id ADC25240029 for ; Mon, 9 Sep 2024 08:05:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725861904; bh=8bhene9fFXsqj89i6SmJyQqduiARbD9W0jonN0l+fiE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=mW6bsA3JByARk7R/kSzA4e2gAHFymtN1GwuX/3tadkL4PMPQhVlC99cp6pU5B1tTl 9F3b9NVGEh4Sr5o/C/d3DUvbtYLuBPQOKVivWGE63VUA1B/3ttj+iMqMVnR5iBlTgx 12zm4VDOOiAwew13JcsaUvMXbSB1B8Zy8rXiNwuFBq3/fvBJBohoPazB4tWrlqSQzs +aBQnImph6PzmfnUziJtSeKatK6bBG4Vp60br3b83So52CG1fEOE1Pw6Tb/5xQW+ya UAJdlUmfFbsjkoSbNtrWp7MY5XrMZ8r+YJvYJLG3ae2KMlCC27Mw0BUaRbfFxBm+gy HdUyg/s7T29GA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X2GX00JShz6twq; Mon, 9 Sep 2024 08:05:04 +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: <87cyldzf3p.fsf@gmail.com> References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <669882e5.050a0220.8ff6d.33c6@mx.google.com> <871q3logb9.fsf@localhost> <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> Date: Mon, 09 Sep 2024 06:06:31 +0000 Message-ID: <87jzflqs2g.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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: 5B0059F02 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.71 X-Spam-Score: -9.71 X-TUID: A1xi5gWTLe5a Karthik Chikmagalur writes: >> I mostly meant calling preview-func asynchronously, while idle, spaced >> out, spending not longer than a fraction of second to call several >> preview-funcs. >> Spacing might then be controlled by the users. > ... > Do you mean something like this? > > (while (re-search-forward org-link-any-re end t) > ;; Make overlay ov here > ;; Find path, link and preview-func here > > (push (list ov preview-func path link) previews-remaining)) > > (dolist (preview-data-chunk (seq-partition previews-remaining 6)) > (run-with-idle-timer > ... > Where the chunk size (6) and the idle time (0.10 seconds) will be > customizable. Yes. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at