From: Nicolas Goaziou Date: Sat, 1 Mar 2014 21:38:46 +0000 (+0100) Subject: Fix `org-open-at-point' in comments X-Git-Tag: beta_8.3~446 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/3917776995611ef7e7bba83aba023640e7fa1aec Fix `org-open-at-point' in comments * lisp/org.el (org-open-at-point): Return an error in comments, as there are no link to be found. --- diff --git a/lisp/org.el b/lisp/org.el index a1f3b1b49..52f7fbfba 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10480,6 +10480,7 @@ is used internally by `org-open-link-from-string'." footnote-reference timestamp))) (setq context (org-element-property :parent context)))) (cond + ((not context) (user-error "No link found")) ;; On a headline or an inlinetask, but not on a timestamp, ;; a link, a footnote reference or on tags. ((and (memq type '(headline inlinetask))