emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] New remote resource download policy


From: Robert Pluim
Subject: Re: [PATCH] New remote resource download policy
Date: Tue, 14 Jun 2022 11:40:09 +0200

>>>>> On Sun, 12 Jun 2022 22:43:07 +0800, Timothy <tecosaur@gmail.com> said:

    Timothy> Hi All,
    Timothy> As was raised in the `#+include: URL' thread
    Timothy> (<877d5sd7yu.fsf@gmail.com">https://list.orgmode.org/877d5sd7yu.fsf@gmail.com>), 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
-- 



reply via email to

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