From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 IKI/CN06x2an9QAAqHPOHw:P1 (envelope-from ) for ; Thu, 22 Aug 2024 13:19:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IKI/CN06x2an9QAAqHPOHw (envelope-from ) for ; Thu, 22 Aug 2024 15:19:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mvS2guxV; dmarc=pass (policy=none) header.from=posteo.net; 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=1724332764; 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=yJD1SsgO+dOKFfBJJLjr/vq4x6kxKA0ar9vzYEAeb60=; b=UeqCkibq5LT7vhtBCFARUZeMe2MQ7xkW2v/ROm9XftMElOk8T+NWN7QQ70ZnkkYPkBnnef dzHPJJYC0kQGKvOVpTeIjY+3onMGIF8KlDK5A1Js4D/yUiGQzfym3ROMliQcmDOTdYj8ct 3zvQFHl6OnDmuM0/sFcOrG4i8YcQ67o7uGQVmyiQ5IPFadPVbv7mo/LQG0mlD4RqbdMIJe P2liaCW5HN+gGMhuy8HVaYd82pdBFMMXZzJSCTLWEcos4AduR7vXHtUA1dm7AaOY2OChrD F9env1HFdIjO9Narb0tVXufM2r1hChpwvitQpVWVY8Vg+sj7owgQt3EIl6r26g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724332764; a=rsa-sha256; cv=none; b=geWAZpjLEqDoUP//AbE8tADNt5kRikTAdv7jWiGkPgG6lGL0oRM/SxDJe3IasACDKtwHjX SjqFzjVbPwXOuqsG7WRZFjsgplhq4pbGpHZqgumX5HZ32fzX0DSO/RP9cbOONkyk1wehEb aQG5hrdtI5wyUdYtx/10MipzPpnfTu6Wo+gWO8yBUcyApIhLFA/UL+rtJjLzM4B0oXGdP9 lFv5B7EkVLvziHoWmCLsQ8IGc1ekGdizPcFIaJ1/w+tkrMTy1STPFO7UUrOsO176iRINlu /sFoK6UWYJc3+nvb5hWhq+Trt/lBDD4XAp9wk/+xAkpUPbvHJZwYxg7ryIFw/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mvS2guxV; dmarc=pass (policy=none) header.from=posteo.net; 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 DABF67F266 for ; Thu, 22 Aug 2024 15:19:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sh7hw-0001Ui-Aq; Thu, 22 Aug 2024 09:18:32 -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 1sh7hu-0001UK-MK for emacs-orgmode@gnu.org; Thu, 22 Aug 2024 09:18:30 -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 1sh7hr-0005er-UF for emacs-orgmode@gnu.org; Thu, 22 Aug 2024 09:18:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3939240029 for ; Thu, 22 Aug 2024 15:18:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1724332704; bh=QxNJUUL+kLAnr2nIx84rOCCTueTtKWSBWi+VmW9PJjY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=mvS2guxVCcEQIAkvWoqf60NWMMD/79Jh5o/biuQLRxCVJmvUfhIHjcDjY/macZ0KU aHtubcvD+BkwNRdjvVOBiCONKk1J+/vXXHbIBxCj0u43kAcdiZNZh+Cb4bIECiYjch RLXPSfUwWluGGO7KuBX3bzqGz/pn6NnXyfEZ7VjmAjwzHS7mjWXmXqMsse7DIH57BC C0TdFYTn7Vpi+TueqD8ytDV6UYlv39Xee5XzpxjwfOpxz4pLf2tXBqXNIHmBA2fN5l EkpRxPx7L2VvMl8lw06whzchE6/IpuqnnKde6wL2B8AsQWtu/64ARh6fK/Y8ToVQu7 dFUp98OHRehLw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WqP0J3f7jz6twX; Thu, 22 Aug 2024 15:18:24 +0200 (CEST) From: Ihor Radchenko To: Karthik Chikmagalur 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: <87a5h77zb1.fsf@gmail.com> References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <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> <87a5h77zb1.fsf@gmail.com> Date: Thu, 22 Aug 2024 13:19:30 +0000 Message-ID: <87msl4wv8d.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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.69 X-Spam-Score: -6.69 X-Migadu-Queue-Id: DABF67F266 X-Migadu-Scanner: mx11.migadu.com X-TUID: 64RJRehaw0FN Karthik Chikmagalur writes: >> 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. This is not a problem. It is possible (and also Elispy) to use advices: (add-function :before-until (org-link-get-parameter "id" :follow) #'my-function) We may want to document this fact better though. > Would you like this to be part of org.el or should I spin out an > org-image-preview.el feature+library? Spin out will be easier when for my rebase :) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at