branch: elpa/helm
commit 085adeb9e7fc8824918e65d9b602da7deb4f549a
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Fix error with symbols not linked to a library
---
 helm-lib.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/helm-lib.el b/helm-lib.el
index 9fc1ed7106..3e6d6ffd3d 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -1278,9 +1278,12 @@ TYPE when nil specify function, for other values see
                         (or (symbol-file sym it)
                             (help-C-file-name sym 'var)))
                        (t (cdr (find-function-library sym)))))
-         (library (find-library-name
-                   (helm-basename symbol-lib t))))
-    (find-function-search-for-symbol sym type library)))
+         (library (and symbol-lib
+                       (find-library-name
+                        (helm-basename symbol-lib t)))))
+    (if library
+        (find-function-search-for-symbol sym type library)
+      (error "Don't know where `%s' is defined" sym))))
 
 (defun helm-find-function (func)
   "Try to jump to FUNC definition.

Reply via email to