From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id EKqvNsBMFWaVPgAA62LTzQ:P1 (envelope-from ) for ; Tue, 09 Apr 2024 16:12:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EKqvNsBMFWaVPgAA62LTzQ (envelope-from ) for ; Tue, 09 Apr 2024 16:12:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PUkMBKdd; 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=1712671936; 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=rqCLw+dcolZhL3cnsZKTcZhAjQSTSarN2iXoaSug14g=; b=oUk1uy3FqNqta3GfDXtnemnSMaMouER+HK7ykw+4/UeBBUmC2fOTIOkEgNi31bS2fDFSuu 7ygVYB/LKJFrKUb/rUIC/2H6t3m2yLROGAXVyZizNAD96wcc/rJy9Nb6azGXWOupbzn+ht Otyi/YGWqHaaQOuDVTa5r7mptN/CfZtFwhJZc/Twlurpt4gegbMO+5pRbOkcfq77LAhiMm IDNicI9/tad+xELl674uNbHAzznQUs0zokvSqllJE4LXasP3TlPMv4TmHEPgET3O9draX1 iXhwExRQNowmc9ZVbcjnmfnAubJd61pSpNIaVIohm+eY9O4WgM7itrk48U/l+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712671936; a=rsa-sha256; cv=none; b=DIy1dtspvxrO/LwU1MOYD2pCPWFZKSZd7pYW0RqUBFlZYPmdnZTihS34hN3qrrKa54gnq7 GwISXcAxjm8rU5P+oiMHkqCCCCMcj21Vo9ysyyljKBxSqAjv6IWIkO9vaaDvqZpU5sQ0e5 cMkBg6uwctkoXmY3eq+AIXnDtw1QRmCzxbDJMjUHPdA7CA5JoKz1aB30eOcoxVOOoRq5KE XLtmmi1iKGWSqx4pf8X2/eTSaSL2AOTE+7pztkETipWw31KXZU2bsuJc/jYWxt/C2n3E5c e/vfd9/Gq0umcp+AvIW8ykz5oUEgJIpy4PZp8xua6GkL6FDgcWe9um00+FHbaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PUkMBKdd; 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 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 B6C8052A9E for ; Tue, 9 Apr 2024 16:12:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruCBv-00068u-7w; Tue, 09 Apr 2024 10:11:15 -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 1ruCBn-00068D-EE for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 10:11:08 -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 1ruCBl-0006XQ-Da for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 10:11:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 25105240029 for ; Tue, 9 Apr 2024 16:11:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712671863; bh=xn1cdv/+iVLn1oMFtn4yXC2jksaFNvsZHZTUwYtx+wY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=PUkMBKdd8jHEIcPg/CY5hJ2kMB/srQx414kvA9S2K6OJ2QSuYXM8Oe0uqGfIqxEzz ni/KLP6MY3+GBTPiBiiwaFHONFRLDESOpWtxquPW1oXPcCQX7fYY4B+8mme9P0rjbs JH2JF2SvuQ1oKDCrYen5PXUGBEpzzjY3qFl9BE/t2r+xz8ESMZGGX1gXBJKcJuVIkK IKsqgrjZ+f6OqSfK0D7pVyF8XnWA8pE3fL+AZ69aWatg40MWuQW0e0+omNZrA+myxy lvodlRNjHoUFdMk/0EJIr4Ik+B0D1mc97gNr3kD5FWLlhwo9j1ClVqDPkWNnQhbYg5 Ve7UrmGdGm+bA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VDSYL2vC4z6tyX; Tue, 9 Apr 2024 16:11:02 +0200 (CEST) From: Ihor Radchenko To: Karthik Chikmagalur Cc: Tony Zorman , emacs-orgmode@gnu.org Subject: Re: Using org-latex-preview in other major modes In-Reply-To: <871q7hf3p1.fsf@gmail.com> References: <87edbhljr7.fsf@hyperspace> <87msq5o03b.fsf@localhost> <871q7hf3p1.fsf@gmail.com> Date: Tue, 09 Apr 2024 14:11:26 +0000 Message-ID: <87sezu39td.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, 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-Migadu-Spam-Score: -6.58 X-Spam-Score: -6.58 X-Migadu-Queue-Id: B6C8052A9E X-Migadu-Scanner: mx13.migadu.com X-TUID: vTit4fw7vIO4 Karthik Chikmagalur writes: >> We may go even further, and extend the previews to be not just for >> LaTeX. Might as well preview html/image links/pdf links/etc. > > I agree in principle but I think this is difficult to do with > org-latex-preview because the async process chain and overlay handling are > highly tuned for low-latency LaTeX processing.[1] > > I do think Emacs could use a generic link-preview package, with an > org-link-preview adapter for Org mode. What I had in mind is something yet more generic: 1. preview.el abstracting away an API to toggle previews in buffer/region and display previews in separate buffer/echo area. It will provide customization on what kinds of previews are to be displayed; and the underlying backends will add themselves to some kind of hook that will do the actual work. 2. latex-preview.el with generic API to preview latex fragments in particular (or maybe even generic fragments that require to run convertor code -> image). 3. org-latex-preview with Org specific code. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at