mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-21 03:48:34 +00:00
1e92f5ed39
* lisp/org.el (org--file-cache): New variable. (org-reset-file-cache): (org-file-url-p): New function. (org-mode-restart): Use new function. * lisp/org.el (org-file-contents): Allow the FILE argument to be a URL. If the URL contents are already cached, return the cache contents, else download the file and return contents of that. The file is automatically cached each time it is downloaded. Add a new optional argument NOCACHE. If this is non-nil, the URL is always downloaded afresh. Use `org--file-cache' and `org-file-url-p'. * lisp/org.el (org-edit-special): Do not allow editing the "file" if a URL is specified for the "#+SETUPFILE". * lisp/ox.el (org-export--list-bound-variables) (org-export--prepare-file-contents): * lisp/org-macro.el (org-macro--collect-macros) : Adapt to the possibility that the input to `org-file-contents' can be a URL too. * doc/org.texi (Export settings, In-buffer settings) (The very busy C-c C-c key): Mention that #+SETUPFILE keyword can now take a URL as a value, and that C-c C-c on the #+SETUPFILE line will clear the org file cache. * testing/lisp/test-org.el (test-org/org-file-contents-url) (test-org/org-file-contents-file): Add tests for org-file-contents. * testing/lisp/test-ox.el (test-org-export/get-inbuffer-options): Add test for reading setupfile specified via a URL. |
||
---|---|---|
.. | ||
.aspell.org.conf | ||
.nosearch | ||
dir | ||
doclicense.texi | ||
docstyle.texi | ||
Documentation_Standards.org | ||
htmlxref.cnf | ||
library-of-babel.org | ||
Makefile | ||
org.texi | ||
orgcard.tex | ||
orgguide.texi | ||
pdflayout.sty | ||
texinfo.tex |