From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uA+fFoE7RWS6YgEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 16:06:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mP6FFYE7RWQfTgAAG6o9tA (envelope-from ) for ; Sun, 23 Apr 2023 16:06:57 +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 27FFC3C541 for ; Sun, 23 Apr 2023 16:06:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqa89-0004ZV-CE; Sun, 23 Apr 2023 09:51:53 -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 1pqa88-0004ZL-3z for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 09:51:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqa86-00068h-2J for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 09:51:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3E66D240117 for ; Sun, 23 Apr 2023 15:51:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682257907; bh=0sFurYcGcz6KKSGjKWDOQW8a7EnbvOTHdib6ZXtx+ek=; h=From:To:Cc:Subject:Date:From; b=nQ/kOjUU7HIjpvLJsoX7EAOhT33cWTVjfrkKVBFhv3hmgzz5gj0PcxkxTf5wAziGv DCK9h4uF8+OBbEQ8YphCeZ/ijrQAArti1NNY/XRHiTo/NHvXilyBCka4BmzQDGIab/ KPtDcy2rdsP3UhnfBrrCYIDplIgpwzEk6FX9AASdDO+puvW79oQv7OlWSlcYXjUPLo z/j8ox9pji5G8NMD4buWQket/zZqmRQp9tF7jgUkt+EYxKs6lMEj1SZNQ+vwLROA0v +mfhkdrXPyaHTjkBujXP/0CxWfzVk80TbUaKLyQrJKoFzQ2c5c0xXA8Ewf/GMq1Mmc Ko+CMSe45/bZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q48nZ35vzz9rxN; Sun, 23 Apr 2023 15:51:46 +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: <87fs8quapc.fsf@localhost> Date: Sun, 23 Apr 2023 13:54:37 +0000 Message-ID: <87fs8q4sbm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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=1682258817; a=rsa-sha256; cv=none; b=XB2NFEnED6CyT337C3rCE9kyI2mot5sj9bVwlQ3KfqMQ+8x2oANJRSY/Yl8NpOyYKgcqfS lcphypmZS7NyUHqQwOrTHzAsdfR2tfnmgZJshMhmLLaqWwp+cAaP0iVLuIo3fJ37pmiKAO wgKLVHpwvJq9ZErOP1qCNs9d9vojeWqX949lhu1bEDdG4t0x89SeUsb3cN8ifC7GSxopBT raOhQguUwKYcoIILFjDIzrTkXiJSi1eWBSNAf2D+6Q3LSgc8/maPnp1Rul5NDKdhhceWQj X+hfMwbaI79MN4FPXWd5tcJR/ZRI2sYXhxYRsmXcrOGmSCim90S+byJqbs9HEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="nQ/kOjUU"; 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=1682258817; 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=9Wk0QbEpTuOq2wm/UoVRq/lzILw2weXyadOrWooWSHw=; b=IAXDeQTLYEUg5IuGDXse/4kLY53thB055cyNt9MJQt86IUje+UPhHhA9PhCPbYVhcust5M 4FkloInEM9hnnmrbyCWS4wTl6vAHtIfCFdAPy9sgK67ZikyWetwCmclB79vRTwkPDTqJ2l 0Kxpf1HdJyhmKCbnBGCoqUT60dN7tacjDbUQAHUQiqS2pxUCPh/pkLMAsCzNV6oVFFxjnR 7lnp2ov19xNILiB28Mi2FawRYUaIUCfGg1CphcWaFKw7LBzDTuhZ9+7AcP5BAtA5PQ1qhW /0ApPPK5zRaCIsLBe3ocfFrrw0DcbrqEZWbqWa0J90H3rRE1XipfSAIrGsjrcQ== X-Migadu-Spam-Score: -5.70 X-Spam-Score: -5.70 X-Migadu-Queue-Id: 27FFC3C541 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="nQ/kOjUU"; 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: h7VI6LNlEFRc Gustavo Barros writes: > On Sun, 23 Apr 2023 at 07:55, Ihor Radchenko wrote: > >> Thanks for letting us know about this scenario! > > Yes, but there's little Emacs/Org can do there, I think. Once the > volume is mounted, there's no way to tell it is meant to be treated as > an encrypted file. We can try (string-match mounted-file-systems default-directory). Will it work with your setup? >> You can use `org-persist-before-write-hook' to disable writing >> selectively. > > Thanks! That's the one. Though it would be nice if a variable existed > for the purpose. `(add-hook 'org-persist-before-write-hook (lambda > (&rest _args) t) nil t)' is not our average file local variable. :) We cannot just disable persistence completely. For example, remote image export relies on persistence to be working _during_ Emacs session. What about file/directory-local variable that will redirect where to save cache? > ... I think this would deserve an > entry in the manual (as far as I can tell, currently there isn't one, > but I'm running built-in on 29, so I might be out of date), letting > people know it is enabled by default, and how to opt out, if they want > to. As my scenario above shows, there's little hope of being able to > cover "all cases", and people must take care of that for themselves > within reason. All Org can do is let people know, and on security > related issues, better be outspoken than shy. I think we can add a section near "Code Evaluation and Security Issues". -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at