org-display-remote-inline-images: Add new allowed value t
* lisp/org.el (org-display-remote-inline-images): Allow value t as alias to cache. (org--create-inline-image): Handle t value.
This commit is contained in:
parent
e08d878314
commit
299193bf09
|
@ -16278,6 +16278,7 @@ Possible values of this option are:
|
||||||
|
|
||||||
skip Don't display remote images.
|
skip Don't display remote images.
|
||||||
download Always download and display remote images.
|
download Always download and display remote images.
|
||||||
|
t
|
||||||
cache Display remote images, and open them in separate buffers
|
cache Display remote images, and open them in separate buffers
|
||||||
for caching. Silently update the image buffer when a file
|
for caching. Silently update the image buffer when a file
|
||||||
change is detected."
|
change is detected."
|
||||||
|
@ -16301,9 +16302,10 @@ according to the value of `org-display-remote-inline-images'."
|
||||||
(set-buffer-multibyte nil)
|
(set-buffer-multibyte nil)
|
||||||
(insert-file-contents-literally file)
|
(insert-file-contents-literally file)
|
||||||
(buffer-string)))
|
(buffer-string)))
|
||||||
(`cache (let ((revert-without-query '(".")))
|
((or `cache `t)
|
||||||
(with-current-buffer (find-file-noselect file)
|
(let ((revert-without-query '(".")))
|
||||||
(buffer-string))))
|
(with-current-buffer (find-file-noselect file)
|
||||||
|
(buffer-string))))
|
||||||
(`skip nil)
|
(`skip nil)
|
||||||
(other
|
(other
|
||||||
(message "Invalid value of `org-display-remote-inline-images': %S"
|
(message "Invalid value of `org-display-remote-inline-images': %S"
|
||||||
|
|
Loading…
Reference in New Issue