org-footnote: Do not move point if definition is unreachable
commit5954f6aa25b51a3a9a8f258fb0f15ef51be31366
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 25 Apr 2015 08:36:35 +0000 (25 10:36 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 25 Apr 2015 08:36:35 +0000 (25 10:36 +0200)
tree809329a79c8d64b6fb65409806cf1f6aca860252
parent0d21d8d0eaec24adae9f0128392459b10d71b77e
org-footnote: Do not move point if definition is unreachable

* lisp/org-footnote.el (org-footnote-goto-definition): Throw an error
  when definition is outside narrowed part of buffer.  Do not move
  point either.

* testing/lisp/test-org-footnote.el (test-org-footnote/goto-definition):
  New test.

Reported-by: Rasmus <rasmus@gmx.us>
<http://permalink.gmane.org/gmane.emacs.orgmode/97158>
lisp/org-footnote.el
testing/lisp/test-org-footnote.el