ox: Throw an error on unresolved id links
commite0b19dedb99d3c01199a159a2da8f9aa4adb2f6f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 17 Mar 2015 22:24:03 +0000 (17 23:24 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 17 Mar 2015 22:31:49 +0000 (17 23:31 +0100)
tree036fd3b5e191be3b99ab8426e143a199a3c9676b
parentdc08e98885015c27196843aeb62bde287da84873
ox: Throw an error on unresolved id links

* lisp/ox.el (org-export-get-environment): Properly find file
  associated to id link.
(org-export-resolve-id-link): Throw an error on unresolved id links.

Use `org-id-find' instead of `org-id-find-id-file' as the latter may
returns the file attached to current buffer on search failure.

Reported-by: Jacob Gerlach <jacobgerlach@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96020>
lisp/ox.el
testing/lisp/test-ox.el