ox: Use a new scheme for internal references
commit32c3f33d00b3dc9affa44b4af432dc349d41e444
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 7 Mar 2016 22:43:23 +0000 (7 23:43 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 12 Mar 2016 22:18:55 +0000 (12 23:18 +0100)
tree48211b6185257395fa9a1528dfd77e978ef13c2b
parent6ec06dcff98e2db9811d1d1e9da01399e9cc1fe3
ox: Use a new scheme for internal references

* lisp/ox.el (org-export-get-reference): Use randomly generated labels.
(org-export-new-reference):
(org-export-format-reference): New functions.

* testing/lisp/test-ox.el (test-org-export/get-reference): New test.

The new scheme is better when datum type cannot be known ahead of time
or when references are not created sequentially, e.g., during
a publishing process where a reference to a file can be require before
the file is published.
lisp/ox.el
testing/lisp/test-ox.el