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 IDY4ISDexGbymAAAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Aug 2024 18:19:12 +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 IDY4ISDexGbymAAAqHPOHw (envelope-from ) for ; Tue, 20 Aug 2024 20:19:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RJ12etOT; 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=1724177952; 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=NDB4C0nEb6Z8nsXBL6eLqmxEGE6mG/BkTF+EtJz5UKw=; b=S1d8rutzDsFZdubIrRs1lHSjB5sFlZk9I6jvyEDstbuhfsc6sbHhJIHvT1zWpmiVy0wLVB drgXiEu9RdVd5ojte2Kp2OUqjpXa9e4+96UxZBKm4OhAx2G6Eg7LVMdyR2xXlgikjHKwcp 8JeVGmKTcWsQknH4ZsKrwE84AE4rGkn3KHEFzgWH55hvbzPKb6fbEso5fZLpUSsyjdRoH0 kKKyd6W7jRAMrTT13OvkgW8dGR2TQFnXyOxHkgY3UTmGVc5n+po0yV6KD3cduTaG5jm4uT ZkzcyAq3jZ8uv9n1aA8xEHJS0FuJLJxMCGHPEKhk3cWiUdTujxAJV/pPClX51w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RJ12etOT; 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=1724177952; a=rsa-sha256; cv=none; b=tyWALdAFP0tuAuWBomDedrt5/DEM7lsAg0aEATIjWOx7Aas7yOUuFDP3i4TdheaafFXR1K IwEa3VcKuz6M1R2wtgCJuTfJq0jVV+GyxrjadnQCAjbdLq/WC2Dg352AVs1KglbCxs0S0B hSVEIAeTw6FqchEMSRD1cLd/Rbo87MlufZEl93utmZcnjYMkZl15IS1/RePUTanTrwHmIk UechWrtxMgSbh0HQhSg2Wx5s72e4TTUBJ1KatP0syFStIbdTZ6T9VfMXMIWdAAESg00wXh hGC0EUsx6m6o3kqwGqu+2WtyppwUJnFwNSWemkr45TnKsFZgadwhsqnBRxJiTw== 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 142468D56 for ; Tue, 20 Aug 2024 20:19:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgTR4-0001Wh-F8; Tue, 20 Aug 2024 14:18:26 -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 1sgTR2-0001WS-6c for emacs-orgmode@gnu.org; Tue, 20 Aug 2024 14:18:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgTR0-0000FC-4r for emacs-orgmode@gnu.org; Tue, 20 Aug 2024 14:18:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DC7C8240101 for ; Tue, 20 Aug 2024 20:18:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1724177899; bh=TqUD6j+ycOUZry3mllQ1KyNBmfbYJu2y+a2rqzEri+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=RJ12etOTspNGTzLD+g5f3jgxn9vKzpHOfyXMo1wgvqSX6D/7gRTbNPZm4k6g2SNkO 6Wd3RihwYkMLXtS+kJF8V0dL1VlC62ll7flDzO2QHY7cScyE/RTu5rgIVn5oEMpIcW ymXL3PzA/XppBa3TFEzM4dcP2/7bZv3KECnip1vvj3mraSHJ81Kb5NxXobIGKaZILS RbrzYSwXtpr+Sio5SfcKwY2gJMMR237MajR/O49M1iWUaND5nHL8w9ejmW/0y6+MJV cpbGg9JXNl0XUmWsxbDZ8G7K4o+X3NHHaFH67LESYc44MyjMOYCHt8hGDgtD4+JPy5 qJASrfy6cjDlQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WpHlH2Y70z9rxN; Tue, 20 Aug 2024 20:18:19 +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: <87cym38aj8.fsf@gmail.com> 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> Date: Tue, 20 Aug 2024 18:19:24 +0000 Message-ID: <87r0ajawgj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.69 X-Migadu-Queue-Id: 142468D56 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.69 X-TUID: ob/hlAPPghCj Karthik Chikmagalur writes: > Ihor: Based on this, what do you think of the following behavior for > org-toggle-inline-images-command? > > C-c C-x C-v : toggle link preview at point > or unconditionally preview active region (not toggle) > or unconditionally preview current entry/section (not toggle) > > With C-u : Clear preview in active region (not toggle) > or clear preview in current entry/section (not toggle) > > With C-u C-u : Unconditionally preview whole buffer (not toggle) > > With C-u C-u C-u: Clear previews in whole buffer > > With C-u 1 : Same as C-c C-x C-v, but including images for links with descriptions > With C-u 11 : Same as C-u C-u, but including images for links with descriptions > > 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? > 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at