From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IHgtIS23cWbEDgEAe85BDQ:P1 (envelope-from ) for ; Tue, 18 Jun 2024 16:34:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IHgtIS23cWbEDgEAe85BDQ (envelope-from ) for ; Tue, 18 Jun 2024 18:34:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=jtGsAYO0; dmarc=pass (policy=none) header.from=gnu.org; 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=1718728491; a=rsa-sha256; cv=none; b=WVlk8ynQsEyq2EY/57CcfTxvcnaigZ/LvcdcFAFa6afuPnQzVr67L4906ufftQrWksLJ6U g1McEIKQ/hXM6FK3ODl7YLcve9FA6D2dDckdl/W6R4XDPcZF524CXC7l8aFJv4hvUSnJLj quXSrRba5XQdQ+U+neTgYU0Evagr9cjYygkMpocwuAiJcEKSEvsBjj+jqL2vhL5WNpv46m B3NYhOJB+hDTq2P6aFGLd/C1OTeGqZhu7SUNqZr9Y7deTe/fTGKz/JdtQeSa5KfzHMzL7i wqqI8d25iNpuFNhoFqy7r/iaH3Y7t3KiACANCf7vCjvsTdR/zR0AOydz+G/ntg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=jtGsAYO0; dmarc=pass (policy=none) header.from=gnu.org; 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=1718728491; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=O2yfQIlOpKEukmCT8Kv9xvT4SoeypwuQ1tnrOnvY9K4=; b=EjQkLdgr7IZiuQSWHdMNIqFwakbONWgbwjrysLgKhHUuui4kW++3pL0Kr1knph7Aj/VSos xTffCnUUwGSW5nL6lDus+jNxqkwKIcx2e32CAE+4zFosQLelqOq7MPcu5zQzJiRU7fI4QB bw0vAEmejz4AnXxfuWcPAQ87V9FNW4yWE7GEYHVdrQ2PrpU3Dy9CpJw0tEHvhf2NCirLdL cLN/M+YB8fD8sczrWWAk00W6RoDmT7iTVSVqywCaWbGJBdn0F9Q36j5D519Ii0u17vgQBC xRIMJRs1+q4Qh9hcW6Uy7gujIJY7Rg64jKZG34lT+u2UuvUE4Ctogkw4Vx3g5g== 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 5ED9D138C4 for ; Tue, 18 Jun 2024 18:34:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJbmC-00039N-1A; Tue, 18 Jun 2024 12:33:44 -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 1sJbmA-00038l-94 for emacs-orgmode@gnu.org; Tue, 18 Jun 2024 12:33:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJbm9-00045B-LD; Tue, 18 Jun 2024 12:33:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O2yfQIlOpKEukmCT8Kv9xvT4SoeypwuQ1tnrOnvY9K4=; b=jtGsAYO0aYIN VBbcrXDcRnjUhWNSiiLHRBvmdop7df4zlZ9ycyRzMUU/UmF6BLynsCsSw0dWKNh92qNRMUoMlxiZh s79lEk5epxRYTRaiL8I7fZKx7K2MSDymAGky73q6xNzCg2TVoz18Rz0KXC+puCjslwp5emcTbTGpF +aenbucJoX5196yNde7zkU+bkC1HV5edNZZQd/9tYGtfnk5ivg4QPcucblPgPheFyJlPfnxvzL+4X DgF4RexJOjBdRMmgej/BzdvoBNa00W3qgq3K/T9ScsYxgzWaQYdZ5lXHLcYTU9U86u745vpFAoq6u kgS7RYpK6ihd92WfM0x5ww==; Date: Tue, 18 Jun 2024 19:33:39 +0300 Message-Id: <86wmmmp5wc.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko Cc: n142857@gmail.com, emacs-orgmode@gnu.org In-Reply-To: <87v826qkux.fsf@localhost> (message from Ihor Radchenko on Tue, 18 Jun 2024 16:25:10 +0000) Subject: Re: Please document the caching and its user options References: <86ed921oxu.fsf@gnu.org> <874j9vllbp.fsf@localhost> <87o781t676.fsf@localhost> <874j9qs0wh.fsf@localhost> <86zfrip6qt.fsf@gnu.org> <87v826qkux.fsf@localhost> 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: -11.10 X-Migadu-Scanner: mx12.migadu.com X-Spam-Score: -11.10 X-Migadu-Queue-Id: 5ED9D138C4 X-TUID: K50BKikOaDSz > From: Ihor Radchenko > Cc: n142857@gmail.com, emacs-orgmode@gnu.org > Date: Tue, 18 Jun 2024 16:25:10 +0000 > > 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. I understand all that, but if the user wants it, and insist on not caching any data, let them have what they want. My surprise was caused by your "it is impossible"; I now understand that you meant "not reasonable" or perhaps "users will not like that" instead.