From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wOjkJsoORWSKYwEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 12:56:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id VAD0JcoORWRoJwAAG6o9tA (envelope-from ) for ; Sun, 23 Apr 2023 12:56:10 +0200 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 49FC32DB34 for ; Sun, 23 Apr 2023 12:56:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqXNb-0007jW-2T; Sun, 23 Apr 2023 06:55:39 -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 1pqXNZ-0007j3-4P for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 06:55:37 -0400 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 1pqXNW-0002JL-ML for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 06:55:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4238D240087 for ; Sun, 23 Apr 2023 12:55:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682247332; bh=0V0YhUHgzja+MIZANvread/MeMWVs1GnsTbbAWNcdVI=; h=From:To:Cc:Subject:Date:From; b=SGQRzs+husnkhbdKf2x/TnI5mtFG6Y/mkIpqNRs7qanDGT0xvDrTQaxsvKhO8yMSo caVjEQyPq+od0wglwR7hNKJBPJ21xcGHq09n5ZnI9R6aSR73Ey9pnPdctcvH1oARkM 2ap4AHPUkv7p6sfsGCIb3z39ni70j6T3iysIe/Saz3WUdlqKrfurbvpIvVj/A/09TS G8iD8dUDEz13jJd9I2/TkzQW6Wjr+s9U44gJ7no01o2q30+dTorziVFtej6F0fw8g2 N5kAGzbEuVyqFjTEtKB1R5V7NkXpOD5J9nDCTChMnabyt70FQ2oO+1c1BJt+BcaWt/ iPcp10xG+F8Xw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q44tC6KfGz6tvC; Sun, 23 Apr 2023 12:55:31 +0200 (CEST) From: Ihor Radchenko To: Gustavo Barros Cc: org-mode list Subject: Re: How to disable org-persist in a given file? In-Reply-To: References: Date: Sun, 23 Apr 2023 10:58:23 +0000 Message-ID: <87fs8quapc.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, RCVD_IN_MSPIKE_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682247370; a=rsa-sha256; cv=none; b=IpMLlzdHftXQLX7NXZX0NHubVI56tcJrFyTzRGE7+d5mNQ6UIK6Etw8QWmZKpH2Cw8ziDs ZNxYG63i3+0lHxmsNBYUbZh085TdbCGV1fRc9L3GyLWp6Vz1Dv/+c+tZ20FsftNFTUzd2S bpVn8fp3v1J3LoIqOOnDzBVfonjnhGZv+IIAK1CISuFx8zLJz07gazy4WxRxbIUN2gTGL7 ITRcscqKhsIhT45DFOpHjKcV7j1bkSAXFPt16rhtA5HdTGN56r1Whnck8WjHcooKtoxa6u +x23oy7WbJwckRX+bFKPZ6V7ReD6hMmK3nWZJbQWhUxACsAXdwY9BDzfSCvwNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SGQRzs+h; 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=1682247370; 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=u+aacVxwWGyaHrtWE3HotTQbNLbk3rEWGi6i8dLBGns=; b=t7T7thHScvamxKQ+K4r76E/mYUE+poMSc932aZ+ieauPpmTZKpxaC5FbMfID7pBkNVZCx7 Pc6VH+wzoPcAINITM0Muq+ZLdPVLU9IS6vEOdbayaOhEp8PrXROTOQi5cdIPaL/V1UDWl+ wLGyH2gaBEFFr8IOtxfWgJIK9KQIep/0WxujuRTE27euClPEfQ/L+gbZS+G3xRol5Pmj9z ghdIcMKHKsiDBVMxKRWboMw972iHInGtBZae3AudXTMz1bwq7mCqTcFW6b+KEZSQjI+wi5 Tk6m0OrzgFuI6Mwag7Wvzms/mllVpRZKVBD7/jXhRy6c5AVt0DaoG3ABtrCGxA== X-Migadu-Spam-Score: -2.10 X-Spam-Score: -2.10 X-Migadu-Queue-Id: 49FC32DB34 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SGQRzs+h; 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" X-TUID: kYGLFoBl5xiP Gustavo Barros writes: > However, I do have some Org files which contain sensitive data. I'd > like to be able to disable persistence in those files. Now, some of > them are ".org.gpg" files, and I've seen the sources of `org-persist' > and noticed persistence is inhibited for them. But I also do have some > encrypted loop devices which, once opened, have a "plain" .org file > there. Thanks for letting us know about this scenario! > However, taking a look at `org-persist's API, I couldn't find any > obvious handle to disable persistence there. Everything I've seen > presumes I have knowledge of registered "containers", which I don't. > > Is currently `org-element' the only part of Org using persistence by > default? Is there some way to inhibit `org-persist' altogether in a > given file? (As opposed to just inhibiting `org-element' use of it > with `org-element-cache-persistent'). You can use `org-persist-before-write-hook' to disable writing selectively. You can refer to the comment in org-persist.el for explanation about the core concepts about CONTAINER and ASSOCIATED terms. Let us know if you have difficulties understanding the commentary or if you think that things can be improved. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at