From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oAQIOrPWmmNevwAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 09:11:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ABTuObPWmmPf8AAAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 09:11:31 +0100 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 A7ECE4028A for ; Thu, 15 Dec 2022 09:11:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5jK6-0001Rg-4P; Thu, 15 Dec 2022 03:10:34 -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 1p5jK3-0001RG-O3 for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 03:10:31 -0500 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 1p5jK1-0008Dg-EC for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 03:10:31 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CF6D3240027 for ; Thu, 15 Dec 2022 09:10:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671091825; bh=qZ6TCsei1rgyUY4hzFA6CKwP0wo+AhNo4A2qCAKYdwo=; h=From:To:Cc:Subject:Date:From; b=W5K1UIPSzryjC9C0M/5jxN0KdJ0ZFoM9cYRxZkyqxmsbGu9mYQT2qWZbokv+sH1e1 T/pjQMaDLbuXycHsk7zvkp5jsAPlsFnnQfNh7t4p/kSgDouIc26i5sVBtQPHGp0WuS B6MZagn+0Y58HGJm6Y2tzktzilG2Wp+VfIa455CMHfN8A8LotzhJZrkRBYorL3+gY0 y7ieL0mUl0vi1T+neSE/ZxAmqVIykcQPNPFEXMhcqoplpmNV/7Di3q45Mu4hXwIbb7 +xgnyRZY2ADYRmHPwsW0FPFjGXcnt0W2i4yd9gSgQwsgGXFM7X9yJJT4FWhiE33m0d RYihPjGhqM3uA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NXlKB41Cwz6tlh; Thu, 15 Dec 2022 09:10:21 +0100 (CET) From: Ihor Radchenko To: m43cap@yandex.com Cc: tomas@tuxteam.de, emacs-orgmode@gnu.org Subject: Re: How to disable completely org-persist In-Reply-To: <875yefcv88.fsf@localhost> References: <1158097067.265983.1670026787291@mail1.libero.it> <871qpf8tip.fsf@yandex.com> <87tu2bkfm3.fsf@localhost> <875yefcv88.fsf@localhost> Date: Thu, 15 Dec 2022 08:10:20 +0000 Message-ID: <875yedw0ib.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, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671091891; 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=jvsvOtc+D52ZUyx+ptMZY1CjFtnz1qoBMbO7W57OMvM=; b=TSNGz2EeqNvp9zSO+qIEKpC9Izl/0hMkR+12uneu6TjKEws8qeFd9Mj/Z63b2cuvJVu7nE 6dhJF9vY6Ez6cJN0lmDEh84HTUMw54ZYwEAVquFIvh+bFaUbETMWRFtWhaxtd/OzVcfGY/ ORWbkb+SIeqYuZMHeRPqS3l3Yv92xfuqbjMNnyWrwN7QHB9Yk+nngoCE7lq+xLetKsMdWQ 8TiHadqjBx5PuOrXuvitxFISVOwgl7POdvLZvkG27OAj+fkkqj01HXv+CHatuW112fJLcB Xo1jjyUUQdSHFLz+bcmAwwy3wIEwLSKa/usNeVefw88rSPmhtZz+2W+hn6T/Eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W5K1UIPS; 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-Seal: i=1; s=key1; d=yhetil.org; t=1671091891; a=rsa-sha256; cv=none; b=ZgF/3dV1PknH3/XAkMOd72ZWPzgLbqR23Ss6DKMDYyvfoDPxKS1KoyfBFVeUnhhDRcFR0o abPKDS0Lfin/NUdRIC9NiWH+s5eImDGeUfxdraczWX3trzK9c8Nd0BswOZsKpKYT49eUaZ mMrXmlOXPjMp/co6krWXcg+FDpl8SKeFqdcsH2jIqCX0KXWYIrL7Z6ojbjDR17BACmy52c QCrEo7B9zaP6+e+IoK7jsIBcilVycwM6ITEDqhTPD0p47mSSARKxlepL5r9r+YM57NzpcM LzJt8vC9lkaNlh3JeWVzDDNex8i5JbvqbJza9tZAlHsq2nZ2dWaewXQkAh97aA== X-Migadu-Spam-Score: -9.39 X-Spam-Score: -9.39 X-Migadu-Queue-Id: A7ECE4028A X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W5K1UIPS; 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 X-TUID: 5BwBvXo3IVrO Ihor Radchenko writes: > Upon further investigation, it looks like we need Org persist all the > time. As temporary storage, at least. In particular, downloading remote > images requires org-persist to store files somewhere. All the times. > ... > So, we cannot disable org-persist and should not even do it with Emacs > -Q. Instead, we may redirect org-persist-directory to /tmp in some > scenarios. I will look into doing this soon. I am going to do the following in order to reduce the issue with littering `user-emacs-directory': 1. When there is no data stored by org-persist (e.g. when the user disabled `org-element-cache-persistent' and never uses image downloading), do not write anything and do not create the empty index. 2. `org-persist-disable-when-emacs-Q' will redirect `org-persist-directory' to a temporary directory. (this is a bugfix) 3. Users who think that org-persist is still on the way may set `org-persist-directory' explicitly to, say, `temporary-file-directory'. Let me know if there are any objections. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at