From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 4Ou4JdfyxGbKFgEA62LTzQ:P1 (envelope-from ) for ; Tue, 20 Aug 2024 19:47:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4Ou4JdfyxGbKFgEA62LTzQ (envelope-from ) for ; Tue, 20 Aug 2024 21:47:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QljIu2ML; 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=1724183255; 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=fcMJcuqsh7x7TiMtE68wA3HmUz/1lFncfsuusl+uIdI=; b=TjU7D6Z+vDIZAdCXAbD6QCqaxV/9hRi5zVTTwRS7HxnFFNa/kJ8JlE0DqwPK7EnbpCLtbv XHK4KdDfq5ckOpCM7wtfUWSuMDXzq9ER9IT9kULzL199XTLLzMzHULo4NCCD4CvqCakEpy g+S9zOjVtUFkNbZh8yKklDVehItdcnFUyMmrBXybTwst4Uct+0Q5ek3o2FtvmCL1DbGM8/ MKj7+NT63PehlSytn3yhJQmVBZM/E1hl39lFJap8wGp1zhx89L4Ga44OnPQS+FueDoOPPB YBVTFbrN2M3TxNklkAvkgl+vZoeStDGk89+tIAFK7sMggEhXqCwDy+KDFuK8bQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724183255; a=rsa-sha256; cv=none; b=Wy2fvr+TOgvdTOtAFsBnlqCFIByOoXWkq41RA5ChxZyPrqWh8Eul60V4vjpi+8klWV6F+i j8TvYpZICm6RB/uUDkjzLbrBj92WhH+4OmHLXuecszkbJYoX8rmajPOPp2EkQdFMcbeMxY 1yQf7BctX+ZPFIIeatWbaJSj2hC6utbqho+gvGh5YOivk772bgZM9sanchiE18p27dGGX1 nacPW9+8Mj9R9nB61mPSwSaXbXK0dKgieveCL25Seye3osqqHibNE48Ur+9V7hhpGjyBPn tuI//A/aMy/unLPj8APXuyIn3jCXequ8QDCCD8augEDK2n7jhvN+Tbr3aHu7sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QljIu2ML; 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 58F69781C1 for ; Tue, 20 Aug 2024 21:47:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgUoG-0000Up-Nv; Tue, 20 Aug 2024 15:46:28 -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 1sgUo4-0000EN-AT for emacs-orgmode@gnu.org; Tue, 20 Aug 2024 15:46:23 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgUo1-0003a0-Nx for emacs-orgmode@gnu.org; Tue, 20 Aug 2024 15:46:15 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-201e64607a5so41452665ad.2 for ; Tue, 20 Aug 2024 12:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724183172; x=1724787972; 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=fcMJcuqsh7x7TiMtE68wA3HmUz/1lFncfsuusl+uIdI=; b=QljIu2MLKQSgAwROjEM6VMrhBvNqU38tr+rprW64IDVEUnhvuffZT5pZL/haqmQE+x 1+vFtsMNz7C4OLiA5ZuY7bhHOR45F/pF4xw9YL8xg6vq1DTJrLMaW5eVl5d2ZLVdJUAP c16j2yUFfjqG95qhP5WNwg5E2ZnB+w1cyUKkghGHyTNgW0FVHj9CE+NzwwLy8lXY66lu RwyAuhR/yYTVa4udmN7HxOl72twpr49qPMsTrgcC58XmhewI0r7YTWM/Utz+N4PTIlZa IkLdqUb0+N3uXuo7yJKoU+NQaq1FoLU9QTuHf3V6zjmVlB7giXmrtXVlHDS8AQWQ+FHH i/hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724183172; x=1724787972; 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=fcMJcuqsh7x7TiMtE68wA3HmUz/1lFncfsuusl+uIdI=; b=Oh9n97XX1UVIIDnmPy24VkF2J2wPGWGtwiZ5vZqG9q+wVmrQ3ifK0WMiJL5kbhcciJ TzxtH7vM//zaQuBCRJPMpFYj+p7Bw9+zLfnjqfOFk9mtCGVk5r24mqOoywy7BpeaX7+6 Zd59Wr0CKwxXJ1NrgjS1GVRZMjmNInKOTDxZHzaRGvG8jRs0cgdmeE33DtS/XgpHZT5O QiqXDV2c5f5f3r7lne7EZ5ihffnSVZTg8CjGWrRW7KzyRqtKhYHpWjwRy0Pqw2l7c1h0 PsCCa8n2zVm01MGV/RdEEtbIfCX4TrzLMsWB8U7dLe5Tm+xhEgmQsQ2hZCY+lAKtpYaE hpRA== X-Forwarded-Encrypted: i=1; AJvYcCV01E1ejXiDDpDRSnXtyzlvH112jMU9d9/R0vJx2iZzHnsBI0HdoaUsdC/cV1OXUsV5JZ2RS4B87L/wXqzt@gnu.org X-Gm-Message-State: AOJu0YwWB7o4278Lk/6ZuDzLmaR5TTsKZGwlTI1Ih2rzzKYUHsDnXuxG grWcovNhD2S1ZMr3heDCuSbZzqeEnDlmMyTNqPqWMD7W/eSkr+L/ X-Google-Smtp-Source: AGHT+IEOIxGeTNh6dDiysYtN9CE8dRNk8MircpR9d5u2DFc1Kh4c26jxTIhR7d9o2jjcMVzd/BpY7w== X-Received: by 2002:a17:903:4288:b0:201:e65b:500b with SMTP id d9443c01a7336-2020404cdf2mr143684275ad.63.1724183171736; Tue, 20 Aug 2024 12:46:11 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:dc9:88d0:f2d1:a5e4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20232a7f60fsm42694215ad.242.2024.08.20.12.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 12:46:11 -0700 (PDT) From: Karthik Chikmagalur To: Ihor Radchenko Cc: stardiviner , Org mode Subject: Re: [PATCH v4.0] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer In-Reply-To: <87r0ajawgj.fsf@localhost> References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <87sfbxhmxe.fsf@localhost> <64623c09.170a0220.52bf9.9437@mx.google.com> <87y1lo4ou1.fsf@localhost> <646379fc.620a0220.c0ae4.9fb2@mx.google.com> <87zg3l1rgb.fsf@localhost> <64c8a313.a70a0220.93ee0.14fb@mx.google.com> <87il9zgpdp.fsf@localhost> <64c905d7.170a0220.f434a.fddb@mx.google.com> <87o7jpoqfl.fsf@localhost> <64cc9b8a.170a0220.dfa99.2e18@mx.google.com> <87msz7kym0.fsf@localhost> <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> Date: Tue, 20 Aug 2024 12:46:10 -0700 Message-ID: <87a5h77zb1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x629.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, T_SCC_BODY_TEXT_LINE=-0.01 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.79 X-Spam-Score: -6.79 X-Migadu-Queue-Id: 58F69781C1 X-Migadu-Scanner: mx11.migadu.com X-TUID: 8Vy9I7RaXNI8 >> This is much closer to the behavior of org-latex-preview. Since all >> these behaviors are new I think it makes sense to be as consistent as >> possible for "preview" behavior in Org. > > I agree. > Do you want to create a patch to that effect? I'll send a patch. >> Separately, are you interested in separating the link preview code into >> an org-image-preview library? This will include the feature of >> registering link preview handlers for different kinds of links, such as >> video thumbnails for local video links and youtube links, etc. I >> already have this working for a couple of years now in >> org-image-preview.el (linked in previous email), but hadn't submitted it >> yet since the previews are synchronous. I was waiting for org-async to >> be added along with the LaTeX preview patch so I could submit an async >> version. But there appears to be activity around image previews right >> now so I can submit it and work on making it async later. > > This sounds like a reasonable addition, yes. > Maybe even hook into link parameters. Yes, the idea is to add an org-link-parameter named ":preview" so each link type can register how it should be previewed. When omitted, we fall back to a default (only for file links) that's the current image preview behavior. More fine-grained behavior may be desired in the future -- for example, web url links to YouTube should be previewed differently from web url links to arXiv, but for now this will be the responsibility of the single :preview function in org-link-parameters. Would you like this to be part of org.el or should I spin out an org-image-preview.el feature+library? Karthik