org-mode/lisp
Nicolas Goaziou beeb4bf23f ox: Fix regression in INCLUDE keywords
* lisp/ox.el (org-export--prepare-file-contents): Activate Org mode in
  temporary buffer so all regexps are set.  Also, be more strict when
  updating links, i.e., do not bother if both includer and includee
  belong to the same directory, or if there's no includer at all.
  Eventually, only update links within lines specifications, if any.

* testing/lisp/test-ox.el (test-org/expand-include/links): Add tests.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00394.html>
2018-03-19 23:48:38 +01:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-C.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-J.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-R.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-abc.el Update copyright years 2018-01-07 00:27:54 -05:00
ob-asymptote.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-awk.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-calc.el Backport commit 69107f347 from Emacs 2018-02-18 16:32:41 -05:00
ob-clojure.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-comint.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-coq.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-core.el ob-core: Silence byte-compiler 2018-03-13 09:29:50 +01:00
ob-css.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ditaa.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-dot.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ebnf.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-emacs-lisp.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-eval.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-exp.el ob-exp: Fix Lisp evaluation when exporting a source block 2018-01-30 10:42:56 +01:00
ob-forth.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-fortran.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-gnuplot.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-groovy.el Replace dash by underscore in temp file names. 2018-02-24 21:39:50 +01:00
ob-haskell.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-hledger.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-io.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-java.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-js.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-keys.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-latex.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ledger.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-lilypond.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
ob-lisp.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-lob.el Merge branch 'maint' 2018-01-22 19:29:32 +01:00
ob-lua.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-makefile.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-matlab.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-maxima.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-mscgen.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ocaml.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-octave.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-org.el Backport commit 66a4e651f from Emacs 2018-02-18 16:32:41 -05:00
ob-perl.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-picolisp.el Backport commit 66a4e651f from Emacs 2018-02-18 16:32:41 -05:00
ob-plantuml.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-processing.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-python.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ref.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-ruby.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-sass.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-scheme.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-screen.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-sed.el Update copyright years 2018-01-07 00:27:54 -05:00
ob-shell.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-shen.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-sql.el ob-sql.el: Improve Oracle connection and usage for ob-sql. 2018-03-16 23:01:58 +01:00
ob-sqlite.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-stan.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-table.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-tangle.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob-vala.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ob.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-agenda.el Merge branch 'maint' 2018-03-01 10:56:01 +01:00
org-archive.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-attach.el Merge branch 'maint' 2018-01-07 00:28:35 -05:00
org-bbdb.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-bibtex.el Update copyright years 2018-01-07 00:27:54 -05:00
org-capture.el Merge branch 'maint' 2018-03-11 19:22:25 +01:00
org-clock.el Merge branch 'maint' 2018-03-06 10:15:22 +01:00
org-colview.el org-colview: Fix typo in docstring 2018-02-10 14:03:59 +01:00
org-compat.el org-compat: Silence byte-compiler 2018-03-13 09:28:24 +01:00
org-crypt.el Update copyright years 2018-01-07 00:27:54 -05:00
org-ctags.el Update copyright years 2018-01-07 00:27:54 -05:00
org-datetree.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-docview.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-duration.el Merge branch 'maint' 2018-01-07 00:28:35 -05:00
org-element.el Merge branch 'maint' 2018-03-07 22:07:42 -05:00
org-entities.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-eshell.el Update copyright years 2018-01-07 00:27:54 -05:00
org-eww.el Backport commit 66a4e651f from Emacs 2018-02-18 16:32:41 -05:00
org-faces.el New face for upcoming deadlines in agenda 2018-02-27 01:44:49 +01:00
org-feed.el Merge branch 'maint' 2018-02-03 15:24:50 +01:00
org-footnote.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-gnus.el org-gnus: Fix `org-gnus-store-link' 2018-03-03 23:33:17 +01:00
org-goto.el Update master-only copyright years 2018-01-07 00:28:44 -05:00
org-habit.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-id.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-indent.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-info.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-inlinetask.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Merge branch 'maint' 2018-01-07 00:28:35 -05:00
org-lint.el Update copyright years 2018-01-07 00:27:54 -05:00
org-list.el Move `org-heading-delete-metadata' into "org-list.el" 2018-03-17 11:49:16 +01:00
org-macro.el Merge branch 'maint' 2018-01-07 00:28:35 -05:00
org-macs.el Move some string functions to "org-macs.el" 2018-03-13 09:26:53 +01:00
org-mhe.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-mobile.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-mouse.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-pcomplete.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-plot.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-protocol.el Backport commit 66a4e651f from Emacs 2018-02-18 16:32:41 -05:00
org-rmail.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-src.el org-src: New option for `org-src-window-setup'. 2018-03-17 08:11:24 +01:00
org-table.el org-table-sort-lines: Fix case-sensitive sorting 2018-03-13 09:09:54 +01:00
org-tempo.el org-tempo: Fix TAB behaviour 2018-02-27 02:02:56 +01:00
org-timer.el Merge branch 'maint' 2018-01-19 18:22:00 +01:00
org-w3m.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org.el Merge branch 'maint' 2018-03-18 21:27:19 +01:00
ox-ascii.el ox-ascii: Use angle brackets for external links 2018-02-10 14:16:37 +01:00
ox-beamer.el ox-beamer: Update copyright year 2018-01-02 11:51:26 +01:00
ox-html.el Merge branch 'maint' 2018-02-18 16:33:04 -05:00
ox-icalendar.el Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
ox-latex.el Backport commit 66a4e651f from Emacs 2018-02-18 16:32:41 -05:00
ox-man.el Update copyright years 2018-01-07 00:27:54 -05:00
ox-md.el Merge branch 'maint' 2018-01-07 00:28:35 -05:00
ox-odt.el Backport commit 69107f347 from Emacs 2018-02-18 16:32:41 -05:00
ox-org.el Implement `org-show-all' 2018-01-10 15:58:21 +01:00
ox-publish.el Merge branch 'maint' 2018-02-15 15:04:59 +01:00
ox-texinfo.el Merge branch 'maint' 2018-02-18 16:33:04 -05:00
ox.el ox: Fix regression in INCLUDE keywords 2018-03-19 23:48:38 +01:00