From: Gustavo Barros <gusbrs.2016@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: org-mode list <emacs-orgmode@gnu.org>
Subject: Re: How to disable org-persist in a given file?
Date: Sun, 23 Apr 2023 11:13:18 -0300 [thread overview]
Message-ID: <CAM9ALR-OHgBXVKH7YEdmOBM0A_Ur5w31W_Ui-p4K9ikjXtt1vA@mail.gmail.com> (raw)
In-Reply-To: <87fs8q4sbm.fsf@localhost>
On Sun, 23 Apr 2023 at 10:51, Ihor Radchenko <yantar92@posteo.net> 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.
next prev parent reply other threads:[~2023-04-23 14:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 19:32 How to disable org-persist in a given file? Gustavo Barros
2023-04-23 10:58 ` Ihor Radchenko
2023-04-23 13:15 ` Gustavo Barros
2023-04-23 13:35 ` Ruijie Yu via General discussions about Org-mode.
2023-04-23 14:27 ` Gustavo Barros
2023-04-23 13:54 ` Ihor Radchenko
2023-04-23 14:13 ` Gustavo Barros [this message]
2023-04-25 10:24 ` Ihor Radchenko
2023-04-25 10:52 ` Gustavo Barros
2023-05-02 20:36 ` Gustavo Barros
2023-05-02 20:57 ` Ihor Radchenko
2023-05-02 21:25 ` Gustavo Barros
2023-05-03 10:58 ` Ihor Radchenko
2023-05-03 11:03 ` Gustavo Barros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM9ALR-OHgBXVKH7YEdmOBM0A_Ur5w31W_Ui-p4K9ikjXtt1vA@mail.gmail.com \
--to=gusbrs.2016@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).