diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-03-01 22:38:46 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-03-01 22:38:46 +0100 |
commit | 3917776995611ef7e7bba83aba023640e7fa1aec (patch) | |
tree | 6fe6e9ecb2ad194c0037a80cc443ec916694bc4f | |
parent | ce8081f7c113f91338dbb5d8ac7479754fa233aa (diff) | |
download | org-mode-3917776995611ef7e7bba83aba023640e7fa1aec.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index a1f3b1b..52f7fbf 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)) |