Fix `org-return-follows-link' on links with emphasis
commit4e864643bdb6bba3e000ea51fb746a26e40b1f77
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 18 Oct 2015 07:36:15 +0000 (18 09:36 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 18 Oct 2015 07:48:54 +0000 (18 09:48 +0200)
treefe568861e23fbd044d4741dc42189313223fc2da
parent8e4650c887e9affee9f7c94c087f7c511b0cbea3
Fix `org-return-follows-link' on links with emphasis

* lisp/org.el (org-return): Properly follow links when description is
  emphasized.  Also tolerate links and timestamps in otherwise forbidden
  areas (e.g., comments, node properties...), much like
  `org-open-at-point'.

* testing/lisp/test-org.el (test-org/return): Add tests.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101977>
lisp/org.el
testing/lisp/test-org.el