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 qF+bAkCxR2TAAAEASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 12:53:52 +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 2MxJAkCxR2QxzwAAauVa8A (envelope-from ) for ; Tue, 25 Apr 2023 12:53:52 +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 98718FC01 for ; Tue, 25 Apr 2023 12:53:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prGHx-0000Yb-E9; Tue, 25 Apr 2023 06:52:49 -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 1prGHw-0000YT-0k for emacs-orgmode@gnu.org; Tue, 25 Apr 2023 06:52:48 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prGHu-00040O-G2 for emacs-orgmode@gnu.org; Tue, 25 Apr 2023 06:52:47 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1a92369761cso45149235ad.3 for ; Tue, 25 Apr 2023 03:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682419964; x=1685011964; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jJyaGv8pUGbcnlJDGmE3U3mRF0NVUbqkQZzNIH5LeJ0=; b=rqhfx+NOGzDbo+ACOPxvpMamWSmKuZ8BwFy3U+YvSzp84xhlGSKnmSxu3yNK5P8FIk Idsx4lu68H1tpJXsBUiGxInRizIBZxBAY7+GoVcaCN0SJJ1cRe/x8I3w+ZMJeMZA5kMM PDGdN1lbk4vpXXZftWipa9Spfum4J4BjBDEcPt5F6dyqk3jirI9/lTFOTstH1UWGTZNh wY/tUkoNlHVnzkhOxWOt8zfK3isesZdsnl9y8OlyaD8QSFbTPwwWQXmH9TjzqoqI8Zbg DTwJPCSVA1uunfK0tRsmJO+kid0a+u0OUs1uFF25d7+FAeaplfpFijpsJBT+ZtWSFm0r WA7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682419964; x=1685011964; 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=jJyaGv8pUGbcnlJDGmE3U3mRF0NVUbqkQZzNIH5LeJ0=; b=UUi0FsoAQwbrJHhGpRIsxohve04vZQuseP29n+WmaE8kb0CcGF3/+/xItSLC77PoOa squ14dHGbbx5EFFF507fOoP9/pKZv1bb8d8hpTkPveCwlrlY14aTvnFtPBobriTMdiKe FdGJ02VlqraC0VH/9p01jafgpl28DovAWSLKlrG4MaiM9G6uTpdC5yA+qV2U/+8yrXJi PnCC6G+vW+BwAmyH/4fZ6gia2L9kYxFck2aY+FkjxUz6Fohb/5Whltu4Ic83RckfyAO4 PJ2tAQf1GEiprhN9BLRiTWDR7Rdpa0DFVVS5oL0ZOS3m6jDSrDrzUett7njBPYQno4XH 8LSQ== X-Gm-Message-State: AAQBX9fwkDX6bnWBo2z0R72nE/WUO1SGYIdbq9IY/gdUC35qCRehcqPc U/n54NvNwSiG/iVVEJMsMN4KTP4zt5oM/L75x0Y= X-Google-Smtp-Source: AKy350ZqJ9s+dBR7rAUo1hGB6+vHSUwkFQHKNMJeUpXZoZFjf0dU5eByn3xuEkoN0eDJfUCD2kjvFS7ivz5R1lGuhOs= X-Received: by 2002:a17:903:27c7:b0:1a6:a8e5:9240 with SMTP id km7-20020a17090327c700b001a6a8e59240mr15547987plb.4.1682419964424; Tue, 25 Apr 2023 03:52:44 -0700 (PDT) MIME-Version: 1.0 References: <87fs8quapc.fsf@localhost> <87fs8q4sbm.fsf@localhost> <87sfcos1ip.fsf@localhost> In-Reply-To: <87sfcos1ip.fsf@localhost> From: Gustavo Barros Date: Tue, 25 Apr 2023 07:52:32 -0300 Message-ID: Subject: Re: How to disable org-persist in a given file? To: Ihor Radchenko Cc: Timothy , org-mode list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=gtvbrs@gmail.com; helo=mail-pl1-x62e.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: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682420031; a=rsa-sha256; cv=none; b=GxBQxF8timmOQ+MY4T3zULnjn4RDwSwdplO+zDZxY1hiJ1T1BIEjhBvd5pm3pkeFZHoPHQ F3kyW2W8ZciIEjrOZHIkpXiBd8yjsxUO/BheIFzBkwhRYzTFbLNIVz705PhT8yJLhiIC0C 0anb+gksIwWHAD45udoJx9/oBCux8+Fk3c2pwk85SMA6xYdTZjlECGgPhbYg/Xx1w/GFza JwG4jAJCP/pV0eN2/XdCJ+kuvSES9pM6IMXu+BDPukZmYTtk5s2OwxVSGwXMeJRaWmIOWN 6nogkmglv4gtMZSifhB9/a7yflv8Pqj/slb+ki3vqhDaVYjTZ56PMoaodTYHmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rqhfx+NO; 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=1682420031; 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=jJyaGv8pUGbcnlJDGmE3U3mRF0NVUbqkQZzNIH5LeJ0=; b=eLKqFwudMjaZX1oDVJQZYP3zEo8PoLjITS5LP1AIHp/gLwznLQk0IybTbnzZfDrckgWrb5 aiUFxZiMn/ki0ylb6nzkf2c3BDWxQT7RJTTPnh2JxhCaIgA8ZSK7ri/Ro4Sg4+NdoZYMOj prHlHYGA6ZuBHAjtwp21nuvIXVZsCHK1Rtkdr8DX/BzBT2OPpTdpHw0GtSoQtBxptajgtP ZVUUApPUwcvr+J7gmnIaVKJPX3vYzHpPnl8AbKWGTYetALrw0YUvKdfM5/5Yv74xwPjKaT 7cPnX+RpvZ60GsvzeqT9CbUIZV3MfGiVEjYbQ0mlb6xD63TEPq5p5PpehvKBMA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rqhfx+NO; 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-Migadu-Spam-Score: -3.93 X-Spam-Score: -3.93 X-Migadu-Queue-Id: 98718FC01 X-TUID: DRHpxXoc8+bo On Tue, 25 Apr 2023 at 07:21, Ihor Radchenko wrote: > > I don't understand that. Isn't persistence about keeping data across > > Emacs sessions? > > Not only. We also use org-persist to cache downloaded images from > internet and, in future, to cache image previews (currently, they just > sit in `org-preview-latex-image-directory'). These scenarios make use of > org-persist during a single Emacs session, not just across several > sessions. I see. But, for uses where the data is only required during a session, does the cache have to be written to an external file? But I think I get why write it for the previews, and obviously, for downloads too. I'm not sure this should be called "persistence" though. > Even if we allow completely disabling persistence for certain files, > previews, and internet downloads should happen _somewhere_ in file system > and might inevitably cause leakage. But what is the way around? My view is that there really should be a way of doing it. Because this has relevant security implications. And because users should be able to have control of their data in the first place. And then if one such a feature, necessarily requiring persistence (as opposed to the convenience of "just" speeding things up), a user-error could be signaled saying "sorry, can't do that because you disabled persistence". And the two cases you mentioned seem quite the exception to me. Of course, I'm speaking here about writing information about / of the org file itself to an external file, naturally internet downloads must go somewhere and that should be easy. The thing is Org is used for a lot of things. You can rest assured I have no intention of exporting my encrypted files alongside some remote content. But I do wish to be able to make sure my passwords are safe.