From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uL7ZBElDRWTfBwEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 16:40:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aES+A0lDRWQr0gAAG6o9tA (envelope-from ) for ; Sun, 23 Apr 2023 16:40:09 +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 D3A4D35B57 for ; Sun, 23 Apr 2023 16:40:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=DHVFntWB; 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=1682260808; 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=PduQV3Yn4JhkrAswcrckSoefT+NGt9Vzcb/djN1yek0=; b=afxhwgCkCfeyb1WetOhPN9hOgw0WBIdVC1d7n4ny/Bnd24vC7ZuGn87+FPMTi/ITa9Z2cu vviC8T4OOcZg4FqK5uWF1FnVJ+n94VTBiyRhBXoXNwsCu4TemZuO+ygHtB2ZvaPdEZXjTW k7JSJA82e5Tksa4r/0pTNcdgft0JwX3WZ5wnlhneLly1zrxp6nCeQWkuFFG+Dm6zxD4HKV 47Hzov2ZZF+7vyCW7IqvnC6Km59HNvyJLwkWkCOk5YMzJ+elKsxNRl5Uz33At+pjc0Mf6L wKf2jjJrOsUrPTqydoG6xprNI7niRUd0gTIHoDcjORNWttFOq305t4tAFYQzlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=DHVFntWB; 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-Seal: i=1; s=key1; d=yhetil.org; t=1682260808; a=rsa-sha256; cv=none; b=gVdpfwU+6KB3VOjsFjnlqImkMIkoLbT69dhsMCRUdHUTDrItB8xT48EIxqG/duj1KIgFP9 faUI4jLyHp1NiSuNprUL4t9vJqvRZo6VBch3MYj5tBXf149ITPnIMmVBbBm+A4r9TZ231J HAsiMXms56I3+4g4v0gyDVVG9mNTdnTvPza1MGS/j25LyAc17R5gyAz4tas7B7yk0BJwt/ /XdjYBNk+Myp/JM5CbxjEWhDVYLyiZwiN88pB+dv0n8NubtE/uSEalF8TBMd5w+1dW8JXu Mwc81UruF38NGpq1EprllSqHrrk0UEl0ctPpYNonfBkMf+CFJCCMyYJM1wcxnA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqaTI-0008Fr-JU; Sun, 23 Apr 2023 10:13:45 -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 1pqaT9-0008FY-9A for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:13:36 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqaT7-00010t-8P for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:13:34 -0400 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so3453652a12.1 for ; Sun, 23 Apr 2023 07:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682259210; x=1684851210; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PduQV3Yn4JhkrAswcrckSoefT+NGt9Vzcb/djN1yek0=; b=DHVFntWBEro+VLnaYF9FODAcd6XIkIFn+aGpeH2cXycZdNX+tKRRgBdV3m2z4k4P7O YlJB++gKmWYTZ85gnbpTyQ8wbJIJI3c8Cimb3CbinXY+W+JZyybM5UhAovwpDtvw/dOE GHiCQVOMKXvfhDFE7vTznXyRDTpnkzIHHwnfgNKkMLjnSIhIaYqCtP3pPT4dvnwfux/C SnWr68C81fzojxXil8Y+9IYLYlo3HdtRavMwfdKBu/3BM3pfDVks6Uo+WcsCmLrU5Swh 7HBdKWRkHRxGqQgUJcuqICLGYeuRZx5upOB/IHLtOQUdE7Pas38hEVWeIKToWKY6V4i5 nJKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682259210; x=1684851210; 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=PduQV3Yn4JhkrAswcrckSoefT+NGt9Vzcb/djN1yek0=; b=KPGfnhX71IHJXfkj1QPEEIYe41yHeignsrZBJUms/K5YbiD/iJEL4wAt+zq4c5IUIO 5SJM8XbI1GI4Zw+4N+Gn3uPk3HiPxcXxwxnX8FZT2E5zUIn+s3xe3Tp/ARAo1FS93HSR 0jPtOWoF5YrXrYwgR38WDWLmhyWH//znuxqxJTDYGajeDzkwTESuWt5wosSmGBenY/4L VFAWnvopZcLZay9cxFPTBoOOrdzvfkXFMvpwjuXu/+NLNFWCOGZJ6bFfLSDir30CN27k NXrQSX7eWJ3mnOjxTcRjknry1W46u24S7xJ4WB5S97u0Vb56ijRjVKEOUAPXxUOCp0i+ lyAg== X-Gm-Message-State: AAQBX9euRQPx0ogv2ArvNaznc3hoDYFOynkikZe+H/YEQJTO72L9QJTL SPI3Rra4NCIY1KM8kTzGe4b3Ke4lqLsWhF+tOwA= X-Google-Smtp-Source: AKy350Y4JsZpN4jsAywB0kPPK3cE0vpVVdyZvW75ey7xhUEBfqlUVrXjJB/bLuqgEdHxcQscOArE7aWY+3w1oz2gk+M= X-Received: by 2002:a17:903:234f:b0:1a8:d52:707e with SMTP id c15-20020a170903234f00b001a80d52707emr12995237plh.51.1682259209778; Sun, 23 Apr 2023 07:13:29 -0700 (PDT) MIME-Version: 1.0 References: <87fs8quapc.fsf@localhost> <87fs8q4sbm.fsf@localhost> In-Reply-To: <87fs8q4sbm.fsf@localhost> From: Gustavo Barros Date: Sun, 23 Apr 2023 11:13:18 -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::534; envelope-from=gtvbrs@gmail.com; helo=mail-pg1-x534.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-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam-Score: -3.98 X-Spam-Score: -3.98 X-Migadu-Queue-Id: D3A4D35B57 X-Migadu-Scanner: in3.migadu.com X-TUID: SE7YodXuxM9R On Sun, 23 Apr 2023 at 10:51, Ihor Radchenko wrote: > We can try (string-match mounted-file-systems default-directory). > Will it work with your setup? Wouldn't that exclude a lot of legitimate use cases? Personally, I don't see an issue in this scenario of mine for Org to handle. It's an exception I must handle. > 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 don't understand that. Isn't persistence about keeping data across Emacs sessions? Redirecting the cache is useful too. But, imho, there should be a way to disable persistence altogether for sensitive data (or, at least, any storage of data in other files, since I don't get what you mean by persistence during a session). If `org-persist-before-write-hook' does this, as I understand it does, adding a function there which just returns the value of a variable defaulting to nil and safe-local if booleanp, would be enough, wouldn't it? Or what am I missing? > I think we can add a section near "Code Evaluation and Security Issues". That would be appreciated, thank you. Best, Gustavo.