0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-22 12:48:42 +00:00
org-mode/testing/lisp
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
..
test-ob-awk.el awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
test-ob-C.el Babel C, C++, D support for non-homogeneous input tables 2014-06-08 19:20:16 -04:00
test-ob-emacs-lisp.el Update copyright years 2017-01-05 20:19:37 -05:00
test-ob-exp.el Merge branch 'maint' 2017-03-18 10:29:33 +01:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
test-ob-lilypond.el ob-lilypond: Fix failing tests 2015-11-08 17:31:34 +01:00
test-ob-lob.el Replace org-export-babel-evaluate' with org-export-use-babel' 2016-11-13 15:29:33 -08:00
test-ob-lua.el ob-lua.el: Update library for Org 9.0 2016-08-29 08:57:10 +02:00
test-ob-maxima.el test-ob-maxima: Revert last commit 2016-08-20 23:43:35 +02:00
test-ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-plantuml.el ob-plantuml: Add support for prologue and header variables 2016-12-10 12:06:04 +01:00
test-ob-python.el Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
test-ob-R.el testing/lisp/test-ob-R.el: Initialize ESS vars for :session tests 2016-01-24 10:08:31 -08:00
test-ob-ruby.el Replace org-ctrl-c-ctrl-c' by org-babel-execute-maybe' 2015-01-30 18:28:05 +01:00
test-ob-sed.el Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
test-ob-shell.el ob-shell: Fix handling list variables 2017-06-10 00:06:24 +02:00
test-ob-table.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-tangle.el ob-tangle: Fix last commit 2016-12-10 00:59:08 +01:00
test-ob.el ob-core: Fix regression 2017-05-08 11:25:17 +02:00
test-org-agenda.el test-org-agenda: Test agenda buffername when reload sticky agenda 2017-03-21 20:42:08 +01:00
test-org-attach-annex.el Silence byte-compiler in "testing/" 2016-06-04 21:12:30 +02:00
test-org-capture.el org-capture: Fix number of blank lines with :unnarrowed option 2017-05-23 18:10:06 +02:00
test-org-clock.el org-clock: Fix failing tests 2017-05-27 18:15:05 +02:00
test-org-colview.el Merge branch 'maint' 2017-05-30 13:39:46 +02:00
test-org-datetree.el Fix failing test 2015-12-29 22:45:14 +01:00
test-org-duration.el org-duration: `org-duration-to-minutes' accepts plain numbers 2017-02-23 12:46:37 +01:00
test-org-element.el Merge branch 'maint' 2017-06-07 18:40:56 -04:00
test-org-feed.el org-feed: Fix failing test 2016-01-13 17:08:58 +01:00
test-org-footnote.el org-footnote: Fix footnote deletion 2017-06-09 09:43:49 +02:00
test-org-info.el ox-texinfo: Delegate "info" links handling to "org-info.el" 2017-01-21 14:19:29 +01:00
test-org-inlinetask.el test-org-inlinetask: Testing inlinetasks 2015-12-04 19:59:52 +01:00
test-org-lint.el org-lint: Report invalid durations in effort properties 2017-03-12 09:08:28 +01:00
test-org-list.el Merge branch 'maint' 2017-05-09 14:49:59 -04:00
test-org-macro.el Merge branch 'maint' 2017-06-08 15:04:55 +02:00
test-org-pcomplete.el Fix some tests 2017-02-13 17:21:24 +01:00
test-org-protocol.el org-protocol: Allow key=val&key2=val2-style URLs 2015-12-22 13:41:45 +01:00
test-org-src.el org-src: Fix footnote reference remote editing 2017-06-08 00:57:38 +02:00
test-org-table.el Merge branch 'maint' 2017-02-01 21:02:48 +01:00
test-org-timer.el org-timer.el: hh:mm:ss format for setting a timer 2015-06-02 23:18:13 +02:00
test-org.el Allow org-file-contents to fetch file contents from a URL 2017-06-13 11:41:58 -04:00
test-ox-publish.el Merge branch 'maint' 2017-05-05 19:52:55 +02:00
test-ox.el Allow org-file-contents to fetch file contents from a URL 2017-06-13 11:41:58 -04:00
test-property-inheritance.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00