ox: Simplify fuzzy link matching
commitd1f9aa3a02c022baa9ded80ccca6589ba9d75669
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 16 Jun 2015 21:05:29 +0000 (16 23:05 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 16 Jun 2015 21:24:42 +0000 (16 23:24 +0200)
tree3964b1d0eca836ae37054cef848f76466fb8053a
parent2c27e85f11aeb4bbf2b3cfea91e6d0a2f8fa4ab6
ox: Simplify fuzzy link matching

* lisp/ox.el (org-export-resolve-fuzzy-link): When a fuzzy link
  matches more than one headline, prefer the first one in the parse
  tree.

* testing/lisp/test-ox.el (test-org-export/fuzzy-link): Remove a test.

This behaviour is consistent with `org-open-at-point'.  Also, it
allows to cache destinations.
lisp/ox.el
testing/lisp/test-ox.el