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 ms9.migadu.com with LMTPS id GM6nCKU7RWS6YgEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 16:07:33 +0200 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 oIVjCKU7RWRUOgAAauVa8A (envelope-from ) for ; Sun, 23 Apr 2023 16:07:33 +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 D7791EC38 for ; Sun, 23 Apr 2023 16:07:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqZZU-0005t8-Ff; Sun, 23 Apr 2023 09:16:04 -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 1pqZZT-0005sh-2Z for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 09:16:03 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqZZR-0007zl-It for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 09:16:02 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1a920d484bdso30353765ad.1 for ; Sun, 23 Apr 2023 06:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682255760; x=1684847760; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IDSl9KSnKwiLUbW839VPlfWaTlGUvqC9ruO0Y62ylH8=; b=QvO2BFDsaLq0dtwGEJNNwSg2UqAF8ME+W8oUVraSv0nfoX6chE5C//zHaS0BZhLH5j UtrcGpCutRu8OnaxobnNq48ZaT05MqEQt8ApjFja/D6DiMe7ETsKkq+dNSnTwYfeT9hz kepZJZz/4N5AIOd92U9x5KVnskrw7MCj3BRcEuxZ/s9qA9NnQaUgScQ67wMokJBv52BG 4JvETGZXrkRfh50VnCIPXprxV5AljfNaG06Ly/s+3rRW68If8oqWk6gOcZzhxdKTyn65 iiludlUp2Khv6jo3SL2yttvpPQr4+zgFBp96eRNkIo7fTM3Tw3EmwbSqvrmVi6Vmyh5J ipKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682255760; x=1684847760; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IDSl9KSnKwiLUbW839VPlfWaTlGUvqC9ruO0Y62ylH8=; b=XYJ+/3hRGsts9pNRzr0mPKX0mmxV2lvlTbkWriBetjI3rNyEKpy3yKmseiENRwImuI 0uD0YoOQd074ydhth1DP/2yHqfCDwy2XtCrddQn348mPVwEQ9VOOytIWX+Cj7uhsQ9x6 rovfegrZTcU2LF3r0JuXNZcofPS4rs5FAvD0X29GwO6vy0+FaygRzEJtHjBifxykzBW9 UpapGCS8POzkzkzZdYug6Z5hmZcpSCwJrX79DZRzcJLu0+1k5KVJnZaWSIy0bB6rK8V4 9xcthJ5g9A6QkwIXvba3iXQ46fzFDjDW46GvJLSHKTmSlcXR9h81VF3G8zdcShr22LOa MJUw== X-Gm-Message-State: AAQBX9eWUdrmmriN9Bh5cUERTyprWFKDpeGzrS4vPGhyeirnBW/86JZ5 TekAxzURouG0brZuH+QioA8/udfWvzASLIRCpBg= X-Google-Smtp-Source: AKy350aRsgZow17NpIRJxewDct9mXF2wwvGpm+LpnlHm8lCiOThbalBDQ5B1/BqFg4mjXbEbef2Ey3t1TBSc+I7+C60= X-Received: by 2002:a17:902:d10b:b0:1a6:4016:8974 with SMTP id w11-20020a170902d10b00b001a640168974mr10294676plw.31.1682255759940; Sun, 23 Apr 2023 06:15:59 -0700 (PDT) MIME-Version: 1.0 References: <87fs8quapc.fsf@localhost> In-Reply-To: <87fs8quapc.fsf@localhost> From: Gustavo Barros Date: Sun, 23 Apr 2023 10:15:48 -0300 Message-ID: Subject: Re: How to disable org-persist in a given file? To: Ihor Radchenko Cc: org-mode list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=gtvbrs@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_FROM=0.001, HK_RANDOM_ENVFROM=0.266, RCVD_IN_DNSWL_NONE=-0.0001, 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=1682258852; a=rsa-sha256; cv=none; b=LPchX1LdkQqfqYqY/LHSnV0DyXJBdLIZgPjr+5y6dKC2z6dZ8iK9P3DK/JIAf/f+eDrXiF xQPGukYORXJBtCU/BDI+t1AyzWoe/2k8o7RtQsW0lfY+iXLSbhEVGTxd3Zz1xPQNQIwZTx 2lVY3fR/SilI17DFBij/OfNyvKvrH0Bs9zrdYEwg3e5OU+miDFfxBHJ1ItzpSVvqIiLaNY VU8sq6gtFcZq71V5kGDTIh6A99dSWDEBAQfzwg5lOk+ZsiH9cspLZE2MRmhuuvjBrWerGd EUWtNZEsGrmKyYmuIjlZ2LuRytPmaML1P12kO4QMVZEVKhLzAkNtpcmVjT2gbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=QvO2BFDs; dmarc=pass (policy=none) header.from=gmail.com; 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=1682258852; 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=IDSl9KSnKwiLUbW839VPlfWaTlGUvqC9ruO0Y62ylH8=; b=mfPQQFfy5EvJst/ElEq6IJuJq1mPm+70vUcrFHoAVzbgr/2j6Y9R5dG0rLXK7yie0ACQ1Z LwY/3t5q0ig3k05hptMufWt4LRWQ5rJpAiAzIf6ZQpnMYytXEO6sKC0K1k8XYIJlRIM/yI qI1NEq6XuFGGtBTPV895HkECAlKII3PcKbdH04Ph48TwZqnkCNcbV5/TC02QLEY3aFi2oZ TLSybLjZle9pkPgQP1OH/jsrH0u55YBGiccNA/tVk8E8N9adIelNo90d3mP5tuAuXmFacw pT7JE8Yu/UXw3tspXWynH6eLGJlxC5hyPW8coAqe3od13tX+ov3klcGZ+CilDg== X-Migadu-Spam-Score: -4.93 X-Spam-Score: -4.93 X-Migadu-Queue-Id: D7791EC38 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=QvO2BFDs; dmarc=pass (policy=none) header.from=gmail.com; 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: TT5c+79RR2OH Hi Ihor, 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. With time I'm learning that non-standard setups, while they may seem attractive at first, come and bite you sooner or later. Not necessarily because they are technically flawed, but because it breaks people's expectations. I do have some unusual partitioning scheme, and sometimes it becomes an uphill battle to avoid leakages. On Emacs alone, I have to take special care of backups, bookmarks (that's now fixed on 29), trash, and now cache. > 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. :) > 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. I took a closer look at it now, and I think it is clear. But I do have a suggestion. I've seen the use of `org-persist' by `org-element' by default announced in the news file. But 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. And thank you very much for this nice feature! Best, Gustavo.