From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 GGsML2NJ32ZcdwAAqHPOHw:P1 (envelope-from ) for ; Mon, 09 Sep 2024 19:15:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GGsML2NJ32ZcdwAAqHPOHw (envelope-from ) for ; Mon, 09 Sep 2024 21:15:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MbZAdVej; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725909347; 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=isjz89OOWZMhj/jW7moRhhb0sjAdg2GyteD8rGxWXlI=; b=Hfg1/teYyN03V1f00B7PNZyqpNbgvvM/sDggjM00TJyp4g5CSzX54w3Tf+VzEla63ZrHZc H+KFayvGYrPI6rs6JwCLin+nd43abFhxrJIVS14M8ZmXtBPzeE/aN9Em94OsdCpeKRc8Vc 5UsZa1eypl0BDpN8X1Y/MGjN8378eoqTYjgvLtY3/chSmK7nIxfEkN2/GOz5zRzOSUY1Sr AknG0YF2apW2HANL31nZalPNTnAmbuuDsGDWtyPHX0AXLB36r1xUf54q8FS7Hut7bStT12 udEl/0TtB8KW01Qpl8kdXDFtR6gjlnpWkO7swikr7Yc3WSsRLNpzrTXRHa614A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MbZAdVej; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725909347; a=rsa-sha256; cv=none; b=nIn9hNVkn94c0FG0XZtA/GIVd1lz6GJanwAO6uwwLB3dvSMAz7qKRu+lTRA62yketl/pE4 sp4/uaT7F3cAamIWaJI+02FNbZjVrmRKqajFjxn+fG0Rdp8RgBbvhqDHe7+K+EMQ/d9TA/ KZubFvGWVF8cCK3tD3eO2/EuyTknpjssrVxjOafZ1bJt7dm1n8MCPIX4O0w51cURL1xwJd ++LI51CSVI3eq0TPkQh2gk9Y7C7Nqpo+fAr0g6SA/0sTJJ9SftSdqeYIw9u9Q0ezP0Z9yk WYfh1NCrrqLLJlKjErpltENcz7foaYXGbHNbDNec7y6awXKCRQRHl29QkNQlDA== 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 A3EAA7A52A for ; Mon, 09 Sep 2024 21:15:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snjqj-0006M5-O8; Mon, 09 Sep 2024 15:14:57 -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 1snjqg-0006Hq-OY for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 15:14:54 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snjqf-0008F4-0W for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 15:14:54 -0400 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-7cd8803fe0aso3386665a12.0 for ; Mon, 09 Sep 2024 12:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725909291; x=1726514091; 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=isjz89OOWZMhj/jW7moRhhb0sjAdg2GyteD8rGxWXlI=; b=MbZAdVej0f9I77nmezGN6/FC1aIZK5cAzFzRT3s9F+HFGX8/LJhC7paIVEouFBpzEd twyQm4aPZ0IU+rjmwqXjv1MxJFvftNAqGXnulHvvfzF25DkIXj/fNaF2IVLTuWBf3zfq d0KugEk5VZS3LIPAuHLzvZVfL+v0/c6kzHM2S7bBkvIyROBct76IniaocjXxc3cVofH5 JyBTRvFQN092bqxl86HQPZNj6ENO6JNm1God3xQ7pmMcEM1KqnBeqtaYc5TmnGXINo8V Le97hwiCrko0AD9S44yfVbbiKPYu7svZmoogBNW/YQx+U3iHbCClgCBfE3kUq0lOmCaM x+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725909291; x=1726514091; 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=isjz89OOWZMhj/jW7moRhhb0sjAdg2GyteD8rGxWXlI=; b=Jfs27EsWJx6btZ0l8WHhd62KJts3/lwhTjtDBshNKO0TPDJQ5V/70VItx1c/SnrFpN wV6HjSaQ3xW/0xIPRg7TkQrQqHqYY1uqntL1WrJlpwTz91MAkVenAulMRcxr6xMusijm OpUPFHDCjzlF/oK3YKZCIKyn1XTF9ZW580b80eBUGX/PzJDU2pbPbMSu8TnTw7oAUb9s TCKaXEfD9o5eUaXiMJK6pvL+exerHEq6Styi3zwrGINDxTZ+LutBMsVnZ32ZHIx5XS6G 3Wz4RPjf6WZiWt2MWwmqtUz4HH9ULeisnLI1KjFdoVJGUyY23ArZtntmDfZ6T4gsQhmB 741A== X-Forwarded-Encrypted: i=1; AJvYcCXC1G29ssv3rCrswzyfLJqqFwYI9O5RrxXCdWfVHNNYLeYiRgGkP727kfzA+/k3kqgLc6LHSaZ51eRtqs9C@gnu.org X-Gm-Message-State: AOJu0Yz+s1nuGRfdgz8OxzdqpPyST0A6SBH6l3Vhsdj4sIoJp0IjG7hG U7Fce3dvSYTU8lOnHApDAZrZQHAMW04eQs6GSkrXSaJHZIHmzkNI X-Google-Smtp-Source: AGHT+IHxINJWAVE9hDJrmKvSDHZ/bsRYmT4Hy8c2/3Z/hsqM58+dbXrlbEC+UbCkt+F7Ys5V8YFk5A== X-Received: by 2002:a05:6a20:ba4:b0:1cc:b22d:979f with SMTP id adf61e73a8af0-1cf2ac7114emr10416256637.4.1725909291146; Mon, 09 Sep 2024 12:14:51 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:ebb1:a35e:e5:986b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-719090b03b3sm73083b3a.178.2024.09.09.12.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 12:14:50 -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: <875xr4rcye.fsf@localhost> References: <6461a84b.a70a0220.b6d36.5d00@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> <87a5ghz6cg.fsf@gmail.com> <875xr4rcye.fsf@localhost> Date: Mon, 09 Sep 2024 12:14:49 -0700 Message-ID: <877cbkzljq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pg1-x532.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.81 X-Migadu-Queue-Id: A3EAA7A52A X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.81 X-TUID: tBVdJg0EAMru > 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? > 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. Karthik