org.el: Fix `org-next-link' and use it for `org-previous-link'
commitefb2ce9c12feee122e61e153e65503a43b5138bf
authorBastien Guerry <bzg@altern.org>
Tue, 19 Feb 2013 09:02:34 +0000 (19 10:02 +0100)
committerBastien Guerry <bzg@altern.org>
Tue, 19 Feb 2013 09:02:34 +0000 (19 10:02 +0100)
treea229059c4ba26a46f2af12fcdc9b0c9a7458348f
parentc64c5992212fd7acc11d3922b2a0bd5cd44fbf08
org.el: Fix `org-next-link' and use it for `org-previous-link'

* org.el (org-next-link): New parameter `search-backward'.
Fix bug when at a link with no 'org-link face, e.g., in a DONE
headline.  Throw a message instead of an error.
(org-previous-link): Use `org-next-link'.
lisp/org.el