diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2013-11-03 13:06:14 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2013-11-03 13:06:14 +0100 |
commit | e186cc804b9302e3c85a149cf2a08ed124634b6b (patch) | |
tree | 91ec99d87636b7c1b9f3aa45c80784ef81bdcbd9 | |
parent | d7379053c0ad41e151f5403d1e5f051b9cc7ce70 (diff) | |
download | org-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.el | 3 |
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)) |