summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-11-03 13:06:14 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2013-11-03 13:06:14 +0100
commite186cc804b9302e3c85a149cf2a08ed124634b6b (patch)
tree91ec99d87636b7c1b9f3aa45c80784ef81bdcbd9
parentd7379053c0ad41e151f5403d1e5f051b9cc7ce70 (diff)
downloadorg-mode-e186cc804b9302e3c85a149cf2a08ed124634b6b.tar.gz
Fix wrong-type-argument error when opening id link
* lisp/org.el (org-open-at-point): Check if link is non-nil before matching it. Reported-by: Daniel Clemente <n142857@gmail.com>
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 8da6f7d..5e1f195 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10543,7 +10543,8 @@ application the system uses for this file type."
((and (string= type "thisfile")
(or (run-hook-with-args-until-success
'org-open-link-functions path)
- (and (string-match "^id:" link)
+ (and link
+ (string-match "^id:" link)
(or (featurep 'org-id) (require 'org-id))
(progn
(funcall (nth 1 (assoc "id" org-link-protocols))