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 ms1.migadu.com with LMTPS id SIkTEZyQE2a2DwEA62LTzQ:P1 (envelope-from ) for ; Mon, 08 Apr 2024 08:37:16 +0200 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 SIkTEZyQE2a2DwEA62LTzQ (envelope-from ) for ; Mon, 08 Apr 2024 08:37:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fqbFTcUt; 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=1712558236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=q9/G6digrTdr/iKOCkudiJijxPj56e1im6Q3dC5PTjs=; b=HCdWxFKt45to8E+7+tMTzLXEWlLm7uM0dYEBPqVOhplmULhwWb0pwR7L5xwdjgupq+u1hc /a8MyMKWzPmFRgE13pFR1prxSle1cTWn87cEstPPnStDWm9hB8GuHIrRp9SZrCK1KtXyYp OVPcfJiX+I5TpZu4/K3WeFGL5eR2ewZYFRqrfTR40gPFSw4PEJMXtwa3z0ltXWs0vReBT6 WazIFiQTqcc+ew5vTCW7y6fc/BWUCHi8C31vuOBAtVN+QBh6e8ZI5p42MfBjoBKoO+Op1V Cb4W6nmcO9J5u4KrnT2EDEcuCyhH7f0cYK8RU1MbMJg7zO/Wv7SwTOFQzlQYMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fqbFTcUt; 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-Seal: i=1; s=key1; d=yhetil.org; t=1712558236; a=rsa-sha256; cv=none; b=uZQGA27+DbTZD0AxDJxzA5FQtWuPqeD9jNbcOQEwYL3f+8c1CThwuFCMY3p9S56tU4Sjny IiI1aNuvLkhIG3npKLuRUmgC1XoAjJnNipf+pJmEV/fQHiFhkjTP98Vq1ke4QLfta/EXR/ Q0zxEowVbsGhZi8428DWc3jOZIbHDf15JAkJcN+deVdIqn+M1yfXZfEdQBmqoCjW667qJd LJ5MH0/WVWy3hyohPT/1EQzWvbqC1pIVemrxBXaaryqT9R6U5XhfoHJslFeTPW3/0diN/u unI6/6ro+a9JR4OGH6DVrzcQTwYkfpjTtAUPqEtzG9BJtQxf6hR9iwcQa9n0cw== 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 189A764EE0 for ; Mon, 08 Apr 2024 08:37:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rticL-00025B-Pu; Mon, 08 Apr 2024 02:36:33 -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 1rticJ-00024z-LF for emacs-orgmode@gnu.org; Mon, 08 Apr 2024 02:36:31 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rticH-0001Qc-R9 for emacs-orgmode@gnu.org; Mon, 08 Apr 2024 02:36:31 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6ecf8ebff50so2280032b3a.1 for ; Sun, 07 Apr 2024 23:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712558188; x=1713162988; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=q9/G6digrTdr/iKOCkudiJijxPj56e1im6Q3dC5PTjs=; b=fqbFTcUtplA3EBY4CD7c0Txf5AdVesqXDoyzMSEnIpDQpu4FeBUzkkWXEQ5WgNUx2c I369dljN6PI2ZXHr72riPGoDuMUHdmu0k2XRU5Kz2CDs5gCbcCX5UB1RfnBFnJFV6TO9 Aix9yaXeGPoSfjrzE/3+Hu4SMBW35a9ZICS9vLwZdv/9ZJ7VgV1LMXul1mHQagQLwAg2 OcUY0kgbxHXufSnzQ3RhWwZhWueerVrdw4KCug9yJ5Z3MBqa96dvPgyRvfJbQX0ixndD IzEXf9n295DXZFdDCQYN4706/FNwAOm/dZ9mHYZm/AEw+lGfBjXKAHyaVGAjoofNFBba 0RKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712558188; x=1713162988; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q9/G6digrTdr/iKOCkudiJijxPj56e1im6Q3dC5PTjs=; b=QYotGlRqX8BSkL5/5Np7K6wkpcMLuPP/81rc4QiosS1CGbMBmFQoZArf3Y2UiL7y0M rrZm6o+oABNrMIct6V8+72u9/QuMJwWrfAx2xGrY2TlHFEEoM0HXCHoLroUOn9PurmUW U2YsvwlJvez//qKrhaRsSNc8rvhvpS7tJhhd1yWkMYn+XteNs1MWDwZ+TKTdS+StuH+e fSLxWNC/RMuTRDNCEHi+kvsv7TFWTzcGo6XXAhMTLuworR4wBmNDcwDC03BDre8WH9fX m6OZqOsoVzuf2YjQYMv/l6LOI42cdmSLdVMs77MRPF19H1DjAjH4z/3sA20y+xfGq3Ok D+9g== X-Forwarded-Encrypted: i=1; AJvYcCXmYn/48+Ii13R4gcxN1w6ZEfWF9yBJes/lBrUoc3eLsxatmjaNcZCRnbOK1XMO+QyFdxfPsnqNKjDDCFFn6Zwv2pkBF9s= X-Gm-Message-State: AOJu0Yxf4EKvCmCXh+hbwU3aa+Piy3tRCAX6KZH2TwgvvMl6J7klCLGL 6tLJVT4XpgWO4SC+p4iTkkGwoKbT4uiBDi15AyE1cmbgcWPQqijE0vabhdx7 X-Google-Smtp-Source: AGHT+IEMRcdF+kzFYbsXGTx5L84/bJYX/MrPf7iiURnXa8IWWMGvtVLfv5sls/MVejxWHHf6nj9hOg== X-Received: by 2002:aa7:8884:0:b0:6ed:41f4:1886 with SMTP id z4-20020aa78884000000b006ed41f41886mr1409981pfe.8.1712558187910; Sun, 07 Apr 2024 23:36:27 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:f683:c351:abc2:2555]) by smtp.gmail.com with ESMTPSA id g16-20020aa78750000000b006e47e57d976sm5729034pfo.166.2024.04.07.23.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:36:27 -0700 (PDT) From: Karthik Chikmagalur To: Tony Zorman , emacs-orgmode@gnu.org Subject: Re: Using org-latex-preview in other major modes In-Reply-To: <87wmp8l6dg.fsf@hyperspace> References: <87edbhljr7.fsf@hyperspace> <874jcdf4hj.fsf@gmail.com> <87wmp8l6dg.fsf@hyperspace> Date: Sun, 07 Apr 2024 23:36:26 -0700 Message-ID: <87y19oe4yd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pf1-x432.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 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: -8.53 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -8.53 X-Migadu-Queue-Id: 189A764EE0 X-TUID: rw2Kbb13BHUx > Thanks for taking a look! It indeed seems that caching will be the most > work to properly implement. However, I'm quite happy to not care about > numbers for now and make sure the other stuff works correctly first > before tackling this. Sure, this is a disproportionate amount of work for a minor feature. I suggest setting `org-latex-preview-numbered' to nil, FWIW. The previews look better this way. > Besides `org-latex-preview-auto--maybe-track-element-here`, I was mostly > talking about `org-latex-preview-live--src-buffer-setup` and > `org-latex-preview-live--ensure-overlay`, which I think will be the main > targets. The latter seems to be quite a straightforward translation > (especially my current constraints of not caring about environments), You can ignore `org-latex-preview-live--src-buffer-setup', this is for previewing when using `org-edit-special' (C-c '), which does not apply to any other major mode. So `org-latex-preview-live--ensure-overlay' is the only function you need to rewrite, which should be easy. Keep us updated. Good luck! Karthik