emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trust API


From: Suhail Singh
Subject: Re: Trust API
Date: Wed, 23 Apr 2025 09:20:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

> Then maybe we should have a third option, to trust this buffer.

I think having finer-grained options of what to mark trusted (vs not) is
useful.  This is in contrast to introducing additional trust states
which would violate the unknown-is-untrusted assumption and, thus, IMO
wouldn't be useful.

Regarding things to mark as trusted, the following distinction comes to
mind:

- file :: unless I'm mistaken, I believe this is currently possible.
- buffer :: I don't believe this is possible yet, but would be a useful
  addition.  Specifically, in the example that Ihor gave the trust
  status of the buffer could be used to decide how to handle
  `org-babel-execute-buffer'.
- region :: I don't believe this is possible at present, but too would
  be a useful addition.  With the above running example of executing
  snippets of code in an Org file, this would correspond to the command
  `org-babel-execute-subtree'.


Thoughts?

-- 
Suhail



reply via email to

[Prev in Thread] Current Thread [Next in Thread]