Merge branch 'bugfix'
This commit is contained in:
commit
aa22497876
|
@ -4561,6 +4561,7 @@ is available. This option applies only if FILE is a URL."
|
||||||
(cache)
|
(cache)
|
||||||
(is-url
|
(is-url
|
||||||
(if (org--should-fetch-remote-resource-p file)
|
(if (org--should-fetch-remote-resource-p file)
|
||||||
|
(condition-case error
|
||||||
(with-current-buffer (url-retrieve-synchronously file)
|
(with-current-buffer (url-retrieve-synchronously file)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
;; Move point to after the url-retrieve header.
|
;; Move point to after the url-retrieve header.
|
||||||
|
@ -4576,6 +4577,9 @@ is available. This option applies only if FILE is a URL."
|
||||||
"Unable to fetch file from %S"
|
"Unable to fetch file from %S"
|
||||||
file)
|
file)
|
||||||
nil))
|
nil))
|
||||||
|
(error (if noerror
|
||||||
|
(message "Org could't download \"%s\": %s %S" file (car error) (cdr error))
|
||||||
|
(signal (car error) (cdr error)))))
|
||||||
(funcall (if noerror #'message #'user-error)
|
(funcall (if noerror #'message #'user-error)
|
||||||
"The remote resource %S is considered unsafe, and will not be downloaded."
|
"The remote resource %S is considered unsafe, and will not be downloaded."
|
||||||
file)))
|
file)))
|
||||||
|
|
Loading…
Reference in New Issue