>>>>> On Sun, 12 Jun 2022 22:43:07 +0800, Timothy <[email protected]> said:
Timothy> Hi All,
Timothy> As was raised in the `#+include: URL' thread
Timothy> (<https://list.orgmode.org/[email protected]>), currently
Org will
Timothy> automatically download files without confirmation in various
circumstances.
Timothy> This patch introduces two variables to control Org’s attitude
towards
Timothy> downloading files, and hooks them into the relevant parts of the
codebase.
I think that would be a good addition.
Timothy> +(defcustom org-download-remote-resources 'prompt
Timothy> + "The policy applied to requests to obtain remote resources.
Timothy> +
Timothy> +This affects keywords like #+setupfile and #+incude on export,
Timothy> +`org-persist-write:url',and `org-attach-attach' in
Timothy> +non-interactive Emacs sessions.
Timothy> +
Timothy> +This recognises four possible values:
Timothy> +- t, remote resources should always be downloaded.
Timothy> +- prompt, you will be prompted to download resources nt
considered safe.
'prompted when downloading unsafe resources'
maybe?
Does this need a 'prompt-always option? I guess thatʼs what you get
with the default value of `org-safe-remote-resources', but maybe it
makes sense to be explicit?
Robert
--