From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YB8AF/XdrmPUaAEAbAwnHQ (envelope-from ) for ; Fri, 30 Dec 2022 13:47:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yG/UFvXdrmN6+QAAauVa8A (envelope-from ) for ; Fri, 30 Dec 2022 13:47:49 +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 EF2BA3C097 for ; Fri, 30 Dec 2022 13:47:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBEey-00030M-Ii; Fri, 30 Dec 2022 07:38:53 -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 1pBEei-0002xW-8Z for emacs-orgmode@gnu.org; Fri, 30 Dec 2022 07:38:43 -0500 Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBEeS-0002EN-VM for emacs-orgmode@gnu.org; Fri, 30 Dec 2022 07:38:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VEC1tkgtPLhyDKcmWinQqUeZUfIh8R3LLACCiAcihoc=; b=t97P7CEWElkvcXJsS4leaJlC1V ncgU0dw7Mc2HhdL+zF4NMHxJVfQi/ip7EiSWg+xvQD5E57iSP99UtrWbEn+Lk4kbp64Y0pcUsI6ed S7Dt5sow555bvq4uIG1FloylD41HLU40QpcgSd5pfnxlp/xxj30MhQV/mib0fq+2CrVXTxsDs37y4 KoEO5WyX+ZiG0mj3KHrhlnHafV9QVsioNnhvxjwhvbwYRnH9/eHtLdw/5lclzwUW8efcB6yc84iOD 4cfqXJODfMpVbfV2UBmlZlPA0YE95wtnaSIPJG3FqX5CThCjmLseI0Irm5p+OG8Hh0xQcJhILmAHf bDGkfhcA==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pBEeQ-0006St-P1 for emacs-orgmode@gnu.org; Fri, 30 Dec 2022 13:38:18 +0100 Date: Fri, 30 Dec 2022 13:38:18 +0100 To: emacs-orgmode@gnu.org Subject: Re: How to disable completely org-persist Message-ID: References: <1158097067.265983.1670026787291@mail1.libero.it> <825716062.1084056.1670146073366@mail1.libero.it> <87k037kcr0.fsf@localhost> <621126175.1192707.1670255220897@mail1.libero.it> <87zgc1u3z8.fsf@yandex.com> <995663126.97424.1672402272044@mail1.libero.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LwQ9Xwd9tAMFTVTH" Content-Disposition: inline In-Reply-To: <995663126.97424.1672402272044@mail1.libero.it> From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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-Seal: i=1; s=key1; d=yhetil.org; t=1672404469; a=rsa-sha256; cv=none; b=JD6ejcD+ChQf7MZMJAQIHKQqJ2cbX/vciOFMvOxvzWG7bfzVX/YXk4C3EDGFtk3R8ZOGSI rIGf1HnaGGMtZTCZpvKf5kprEKRMrnZ4HrVqZ8Ag04m82/brjnU30Giz8czPw6a7COXJit Ou12FFrxqUkpdDW3YK9QDzY+q6qI8PICGSERg7fZl1NED+vJUfUU84B7bWg/o06gPUerAu NealsPrOhc9t4apYu3LPoY27qSQ3t4Geh5R+Ys7WWSOpi3rdBJCN3pTC86zZWt44qimbgQ vCaI31uIYIHk9bP0EH9UqAwAMWlylCrGoi92l25G/ko15bpuAHkPU599QAeqLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=t97P7CEW; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672404469; 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=VEC1tkgtPLhyDKcmWinQqUeZUfIh8R3LLACCiAcihoc=; b=A3sI7kRghlxqv9kNgaIzeMse0khxiGHORh6nK/eY6ni9GmCfhpn0K9mIxsMmfUMQhR3gq6 Xm0aUgjWN92P7s1nSuZNg9/+5ul5PT2F8B/QCOjxrkp+nFAtnYxSIVvuKck+AmmaG3cpDt nJK6AwT44qVE8rlr0JfKpX37QxoGjWfq6XhSdtGZqxj6MunHEC7aRY5WVfCUnXxMGSitV/ XICYYdrL6xCnYFvHFBV7n7pOIMiTAmChWLqBjw84Ih/nd2ItQVcgWixV9XLDWWmbV+oD6L +jugNuBpP827dhJCngtQiRr5Jn6zHCVpIo2vbM3hH7qIK2aM+JVlFPDkU9+ALQ== X-Spam-Score: -2.43 X-Migadu-Queue-Id: EF2BA3C097 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=t97P7CEW; 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=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.43 X-TUID: BxA9ZBv4h5qg --LwQ9Xwd9tAMFTVTH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 30, 2022 at 01:11:12PM +0100, Angelo Graziosi wrote: > > Il 05/12/2022 18:58 Colin Baxter ha scritto: > >=20 > > =20 > > >>>>> Angelo Graziosi writes: > >=20 > > > Colin Baxter wrote: > > >> I too would like a means to disable org-persist. > >=20 > > > On emacs-devel there was this suggestion: > >=20 > > > https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg00125.h= tml > >=20 > > It appears to work, after removing a couple of surplus brackets from the > > end of the last line. >=20 > After the last Emacs master build, the what suggested there, i.e. >=20 > ;; As suggested here: > ;; https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg00125.html > (setq org-persist-disable-when-emacs-Q t) >=20 > (defun tv/advice--org-persist (old-fn &rest args) > (let (user-init-file) > (apply old-fn args))) >=20 > (advice-add 'org-persist-write :around #'tv/advice--org-persist) > (advice-add 'org-persist-read :around #'tv/advice--org-persist) > (advice-add 'org-persist-gc :around #'tv/advice--org-persist) >=20 > does not work any more: that directory is recreated even with that cod in= the init.el >=20 > Someone knows how to avoid that? AFAIK there is now a defvar `org-element-cache-persistent'. Maybe it works for you? Cheers --=20 t --LwQ9Xwd9tAMFTVTH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY67btAAKCRAFyCz1etHa RjIsAJ41H4bEnje/VgwvBvRauLlF9p32+wCfT1F/NYVv/qigB7O0PmZrv0IEIKU= =yaNd -----END PGP SIGNATURE----- --LwQ9Xwd9tAMFTVTH--