From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About the new directory org-persist in .emacs.d Date: Mon, 5 Dec 2022 16:14:56 +0100 (CET) Message-ID: <195946485.1168081.1670253296551@mail1.libero.it> References: <2018063536.265539.1670023606601@mail1.libero.it> <87sfhuwfsc.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24996"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, lekktu@gmail.com To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 05 16:16:06 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2DCN-0006Ew-LC for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Dec 2022 16:16:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2DBU-0001dq-IN; Mon, 05 Dec 2022 10:15:09 -0500 Original-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 1p2DBQ-0001dK-67 for emacs-devel@gnu.org; Mon, 05 Dec 2022 10:15:04 -0500 Original-Received: from smtp-31-i2.italiaonline.it ([213.209.12.31] helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2DBN-00077R-W2 for emacs-devel@gnu.org; Mon, 05 Dec 2022 10:15:03 -0500 Original-Received: from oxapps-15-087.iol.local ([10.101.8.97]) by smtp-31.iol.local with ESMTPA id 2DBIpNnUYkeEO2DBIprLdj; Mon, 05 Dec 2022 16:14:57 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1670253297; bh=BasbLVrVTkCXCmUiJi/jpMuelwSVR/Z28dDpK7DyPPU=; h=From; b=GZglhb/uQrmMR8lTA42p3bYy3EvJs4WJXdxUHrgd1IyMCsWWR/q9uEW4BdhnbsQI3 Pa9hv3WiicZV0Cw5Sscv+ykNHE8Why9DdD/Qr0kxJK0f5luH0/pMC1XrftM8n/VLad zti4kgrhkXNtiumdRqem2eyyOiG80N5StVtvOhyMZ5u6WRex/9JoKIEzuoDcDE5PTb Vp8kkQN5DJ2NnicpQy12uMnIboKPxM8l7VVdCQx7lXYK+R7Er8GlP3md0mGAUE+9Fq bW6iFTW4R4MHUyu9JsvrD/CsPPYEkXvkWnZ6U08Td8s0dZaPoTSBbXKY/89+SoSyrm Nw7qaPlTqd30A== X-CNFS-Analysis: v=2.4 cv=aeOkITkt c=1 sm=1 tr=0 ts=638e0af1 cx=a_exe a=8sYAMC0tVH7WCcw31bS/hA==:117 a=Bjq19IGUEykA:10 a=IkcTkHD0fZMA:10 a=IweMqyqRNv8A:10 a=uChsZFC9AAAA:8 a=MvRxgz_wreYZg-yjpgQA:9 a=QEXdDO2ut3YA:10 a=ULtXvzFHYWHLyBAuiDia:22 In-Reply-To: <87sfhuwfsc.fsf@posteo.net> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev51 X-Originating-IP: 95.238.24.14 X-Originating-Client: open-xchange-appsuite x-libjamsun: SwRf/8XzIr95NCUx2aZ/cMpMgNkm5rZL x-libjamv: A/B+IDrP+os= X-CMAE-Envelope: MS4xfBjbxJcSP+IAeYqeIwZpBeIO0hS6EzIziiiabsFrMQaBGa2bg56MZlwzyVTO7xZVx3203+U2Wk829sjN8qyBuOUXAJrni+lzij/a7PBKPQ6AcAG25JFI eXPrAwi7t2cxVDjFgVBABexyLmd38cu1iUo8eJRqndhyPl78tqb0kjFq/qlawLM1TIjoqp1nACwyzNU5jniULKQjk/Xyd+ttaJG9R+/ouibcIOB8iPgfP+vS 3YOh+xm9ndclriQO0nd3ew== Received-SPF: pass client-ip=213.209.12.31; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300930 Archived-At: > Il 05/12/2022 06:59 Thierry Volpiatto ha scritto: > > > > So, How I can disable the creation of that garbage from my .emacs.d > > directory? > > (setq org-persist-disable-when-emacs-Q t) > (defun tv/advice--org-persist (old-fn &rest args) > (let (user-init-file) > (apply old-fn args))) > (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))) > Thanks! it seems to work.. I had to remove two extra `))` at the end of the last row..