From e186cc804b9302e3c85a149cf2a08ed124634b6b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 3 Nov 2013 13:06:14 +0100 Subject: [PATCH] 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 --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 8da6f7d68..5e1f19508 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))