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 GHHvCU3mYGc0HwAA62LTzQ:P1 (envelope-from ) for ; Tue, 17 Dec 2024 02:47:41 +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 GHHvCU3mYGc0HwAA62LTzQ (envelope-from ) for ; Tue, 17 Dec 2024 03:47:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=thaodan.de header.s=mail header.b=phc1HFM1; 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=quarantine) header.from=thaodan.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734403661; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=dkW7yCEb1pEWLIdHHMlRdKOJPbyUmxUtATODocW+WJE=; b=YjyqzNnzL3AKXj6h1iIQTNDSCW3OHu3+PLhmptMYCgJg6ht5UJB8w0eG/PogneumxtzWg7 +3xhh3h/53W5A+kkMimzHNW/a+Ug+lNPLtgHUIScztUIq+sKr27LsrszPe864WTPBXiqQG Wlnm+1AG7jD+uYmZOxx1IFaXvRE6YGZMNqCfw82kvz5eNS24IjqDor+NNvxSopOA/7Jjxb YlnmEJ5ZaOkyRddodGYto6lG8ist0xp46qxX92Z8yp67PtR2G9T3fIgCqa5WNZPG+f09u6 RumKwtKFTS7clPWEWF72GCSZk1yFquRjJ9VcRnX+3+IwEZUIjUmxFJnLGtPXdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734403661; a=rsa-sha256; cv=none; b=eNO4UwpmKAoMPNF4OA5erCFMLeKXvBXPDUux8e8apDqMB+lUpkPn8aNG2iagcoKaRqZYrR FlmtQR+kLCVTtqg06Rn60oB4t4MazkrTDc0zKciGPvecgHhrn2LK1E+67mQC4WxtkGjkH3 UF6IXO6GBHsTegnEUCrDoXDG+XD7B/YQnWQNTI3L998l3+TMK9nWTBdo6uSd7DCLCK4dJl hCkv5sZULCAjtZkUpWmCrgLJ82O4F0R/pjxw7aNsP1qgJ3duk8c+OBVtWQKUjIzJSmtwSX zx12g8xaNut2HYoashrUVWEG7yoRLEkiq5aABiO8Gf78VE15n1oJ8V91T2ywnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=thaodan.de header.s=mail header.b=phc1HFM1; 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=quarantine) header.from=thaodan.de 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 C6EB984893 for ; Tue, 17 Dec 2024 03:47:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNNbw-0006nf-1v; Mon, 16 Dec 2024 21:47:00 -0500 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 1tNNbs-0006m1-7R for emacs-orgmode@gnu.org; Mon, 16 Dec 2024 21:46:57 -0500 Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNNbq-0001Gq-4W for emacs-orgmode@gnu.org; Mon, 16 Dec 2024 21:46:55 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id B7868D00063; Tue, 17 Dec 2024 04:46:49 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734403609; bh=dkW7yCEb1pEWLIdHHMlRdKOJPbyUmxUtATODocW+WJE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=phc1HFM1QRTxDwEk6EsMc4Ie6eIWavB5WcV5J3Cq3b9lopeUmAGzGcXH2BiCjqXk0 0cmzAmUIsuSWnaflcf2nfy0XqyIpufdXIqSvUM2PDp/zi7/dnsvhYv21ViS3HgWgd+ yQ2TXFwKb5W+w6y4xeI0v1cq3Ofgknw3b32voAszrz6XZrTROTPdyEEZDilqSd49Fr 4v8mzvD1YDKyxowlNUAgV9288t6iegjRro29+8eqdJrR9X8qeWWgZWwHoOaEBWtoeC PCWektWLglOi/VLvJB/i3+0OXbkQGtPZfcSEK67hqgl/ME21jjyKc0sR7gUStEIyZV cGI5NS1VH1eXGNf1TJcEIpa41uWtqBr6zq0b3huqvTKl2KlLaGu0wjVqyY+ol6nk8w 4XzXkN2WWfrfL+Ona/flv5uCWdmI+dTm4PKTaP/W/HF61VhXDK1Li8+aY1++GgJsrM R7tZWmfwSVsjZmqbM1l7JmQKa0FliJILItjMkg5wiVBSxXCakotfUd9t12BgpDR5OJ cfuwGDEtTKOrsb3anM35knQAVvFOAPCKMcIJi6hWuy71pM5tKmV8TNKJRNSqhaYkCK geB1G0Zib/rt3VH9efLprv7RpBif5yCHERylinFlKktL6gQm/wGaARi4NxuQ/W04Lb SHOIfgGpoLEJKCDD0bO7Dlq8= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar To: Ihor Radchenko Cc: Karthik Chikmagalur , emacs-orgmode@gnu.org Subject: Re: Link preview generation with new link preview property In-Reply-To: <87pllug2y4.fsf@localhost> (Ihor Radchenko's message of "Sat, 14 Dec 2024 07:04:51 +0000") References: <6755f138.0c0a0220.40388.51fbSMTPIN_ADDED_BROKEN@mx.google.com> <874j382kue.fsf@gmail.com> <87pllug2y4.fsf@localhost> Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Tue, 17 Dec 2024 04:46:48 +0200 Message-ID: <87msgvc9gn.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: C6EB984893 X-Migadu-Scanner: mx11.migadu.com X-TUID: XbRGGv1/+t/q Ihor Radchenko writes: > Bj=C3=B6rn Bidar writes: > >> Would it be possible to also handle image data in the function or >> refactor the org-link-preview-file function in a way that the geometry >> handling is done in a helper function which can be reused by other >> handlers. > > There is such function: `org-display-inline-image--width'. > We may consider exposing it as public function. That would be awesome, the easier it is for other modes to add their own handlers and them to survive org-mode updates. Although for this http link handler it could be better a function inside or= g-mode. >> The link element passed towards the handler didn't contain the >> description e.g. in this case file:https://stable.melpa.org/packages/rpm= -spec-mode-badge.svg. > > This is expected. See https://orgmode.org/worg/dev/org-element-api.html#o= rg22c967a > You can access the contents by looking at buffer text between > :contents-begin and :contents-end. Either directly, or by invoking > sub-parser on the text. Oh thanks, will look into that. Is there a offline version of the manual like the org info manual?=20 =20