org.el (org-open-at-point): Handle non-links correctly.
commit14ffe22b8fa0190e9b0b5ab0a22dd8ac76f9f003
authorBastien Guerry <bzg@altern.org>
Thu, 20 Dec 2012 08:39:35 +0000 (20 09:39 +0100)
committerBastien Guerry <bzg@altern.org>
Thu, 20 Dec 2012 08:39:35 +0000 (20 09:39 +0100)
tree85429e8cb32926fafc3a40a16e3fab48e035b72f
parent963ede0a9d9f439f9ef4e5f0a4c5b01ddf07ca42
org.el (org-open-at-point): Handle non-links correctly.

* org.el (org-open-at-point): Throw the correct error on
non-links.  Use `user-error' instead of `error'.

This fixes a bug introduced in ad35e2.

Thanks to Samuel Loury for spotting this and for submitting a patch.
lisp/org.el