org-mode/doc
Kaushal Modi 1e92f5ed39 Allow org-file-contents to fetch file contents from a URL
* 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.
2017-06-13 11:41:58 -04:00
..
.aspell.org.conf Track support files useful in checking Org documentation. 2008-04-01 15:59:35 +02:00
.nosearch Add .nosearch file to the doc/ subdirectory. 2008-12-17 17:25:31 +01:00
dir Split out a number of files from org.el, and reorganize the 2008-03-28 09:57:14 +01:00
doclicense.texi Update copyright years again. 2014-01-07 14:18:17 +01:00
docstyle.texi Backport commit c33d89c from Emacs master branch 2015-07-26 23:29:31 -04:00
Documentation_Standards.org Fix some typos 2009-11-15 10:04:23 +01:00
htmlxref.cnf htmlxref.cnf: New file to let texi2html point at the correct Calc HTML manual 2014-05-24 12:19:13 +02:00
library-of-babel.org Move contrib/babel/langs/* into contrib/lisp/* 2013-03-06 17:43:33 +01:00
Makefile doc/Makefile: avoid spurious whitespace in environment variables 2014-01-07 21:23:45 +01:00
org.texi Allow org-file-contents to fetch file contents from a URL 2017-06-13 11:41:58 -04:00
orgcard.tex orgcard: Update export section 2017-02-11 17:39:13 -05:00
orgguide.texi Update copyright years 2017-01-05 20:19:37 -05:00
pdflayout.sty Revert "Update copyright years." 2014-01-05 06:28:07 +01:00
texinfo.tex doc/texinfo.tex: Update to stable version 5.2 2014-04-29 13:46:21 +02:00