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 4N7+Mre0cWbPnwAA62LTzQ:P1 (envelope-from ) for ; Tue, 18 Jun 2024 16:24:24 +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 4N7+Mre0cWbPnwAA62LTzQ (envelope-from ) for ; Tue, 18 Jun 2024 18:24:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDPyU1rD; 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=1718727863; 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=24WhK/fRf60eRx7FDd74SY9izqbeWC8Ucy2Ia7y3+yg=; b=ZUJ8jnJG+mG7gj29rfEuGllpe3p5CRX3U0urxHJEW8fhZw82xsPRi+gI0++ZbIt8VHKzGw LaYLDkAK2LGoGZRyB02yM6a2qvH0qutJX/InLgicuubBlTKugSxgx+2tV5P7twDHVmBNKS E2R0uocFrMjSEk7uRrFhRK+klhufZQdTIS/qR+fgEj9oXFGKb2fkTjKoxKrT9HpiJQ2DYi IOPNVTf+BGf/4B7lZIWCCibCIiconL8nP+bt4S34xTo6/tJ5ZELipSg+PIRclLSMYr0oUh Xt2vhi8ZzJRngqU3KTR/VRw255X2zalMP82GleXPxnUcbXOMQ6l7S5RdB73dbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718727863; a=rsa-sha256; cv=none; b=swgCkHXmlIZJr7ZSXv5XP442++8MF1MkbEMTMsxQwrgXp6ik7alWm89RiZKPDTQhDbqtOc 1LYUhZhQ5FkZv/w9SE5PW0n7OKrOlshXmt4furgsB53KwF04oGvCrDpJMZ6MKD59yaJo84 6LjlEknm+32Z8/xXgEr3kRHTyp+PKNwxCBPdH5f5PmgI3rV2kPbpg4h7+n9tznvtFifPAY k+3XR16C5LYks/cHPNLFOcSpkEwuHmdV7pWy9emBbJLKzRS7mwxJAYGHBYi6wLLiB5+KBe XUaI4Kf3l9egmbWzbKyIhBQWNBDUHFV3RFFux6HRHvR082lhvHsb2e03NxJDSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDPyU1rD; 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 6F7123A392 for ; Tue, 18 Jun 2024 18:24:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJbcJ-0007BU-5h; Tue, 18 Jun 2024 12:23:31 -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 1sJbcH-0007B9-F7 for emacs-orgmode@gnu.org; Tue, 18 Jun 2024 12:23:29 -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 1sJbcF-0002LY-M9 for emacs-orgmode@gnu.org; Tue, 18 Jun 2024 12:23:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CFB2B240104 for ; Tue, 18 Jun 2024 18:23:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718727805; bh=9W7d1UFKWK83e3FIPX2XVuNm1BGIrCGolwMgtwenNww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=iDPyU1rDaDx4/2zWz1Tp4+ByiAViIPF2nZT5IkQKHymPcZ+NzXMg8HcxIH99ZqakL 4NHqQS+/qmqaLNc/f5ld7YlXKKpvvqe7E10g7XlvZWXVLb+yNyVp6uyl/fConNxHFS Guli5PPaJ2fZNZLp9t8OWMPYEq6TyKDfXwUCtpz1YpHe0GVR9ua5syZ8IdeDCQY5vT GIg/6OFR50S7XuLoofhT28hLrKJ/ugL69bdrS8sm2J+0Rsbn/OkxR4Ew9dWUM1KXdq V2aUEFUf+sHbEdmUB0svIdKBzsyuSKJbKguvypWqf2X3gBtf1dRAZuKjz7VUJCfclq 8sTIbVbMQkzNw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W3X9n2JyWz6txs; Tue, 18 Jun 2024 18:23:25 +0200 (CEST) From: Ihor Radchenko To: Eli Zaretskii Cc: n142857@gmail.com, emacs-orgmode@gnu.org Subject: Re: Please document the caching and its user options In-Reply-To: <86zfrip6qt.fsf@gnu.org> References: <86ed921oxu.fsf@gnu.org> <874j9vllbp.fsf@localhost> <87o781t676.fsf@localhost> <874j9qs0wh.fsf@localhost> <86zfrip6qt.fsf@gnu.org> Date: Tue, 18 Jun 2024 16:25:10 +0000 Message-ID: <87v826qkux.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, 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.58 X-Spam-Score: -6.58 X-Migadu-Queue-Id: 6F7123A392 X-Migadu-Scanner: mx11.migadu.com X-TUID: rCRZMoE/7zz/ Eli Zaretskii writes: >> It is impossible. We need to store files like latex previews >> somewhere. This somewhere is org-persist-directory now. > > Sorry, I don't understand: why do you need to store them as files? > Why not keep the previews in buffer(s)? In Org mode, in order to create latex previews, we (1) run latex to generate the preview image (2) that image is stored in some directory (3) we display that image over the corresponding latex fragment in an overlay (4) we retain the image on disk, so that we do not need to run latex many times if the users toggles displaying the previews (this is very important, because running latex is costly) Can we instead store them in memory? Yes, but (1) it will make Emacs RAM consumption grow constantly and more and more previews are generated; (2) it will require significant changes in the Org mode codebase. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at