]> git.eshelyaron.com Git - emacs.git/commitdiff
(elisp--xref-identifier-file): Skip features that have no sources
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 27 Dec 2014 23:54:43 +0000 (01:54 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 27 Dec 2014 23:54:43 +0000 (01:54 +0200)
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-file):
Skip features that have no sources.

lisp/ChangeLog
lisp/progmodes/elisp-mode.el

index 2c5a9c4a3cdbd403536073d0ab5725b42c1b193f..7678116f576bf71e94b0887013ce66a62c3275a7 100644 (file)
@@ -1,5 +1,8 @@
 2014-12-27  Dmitry Gutov  <dgutov@yandex.ru>
 
+       * progmodes/elisp-mode.el (elisp--xref-identifier-file):
+       Skip features that have no sources.
+
        * simple.el (execute-extended-command):
        When `suggest-key-bindings' is nil, don't.
 
index 347560a484e94ad86e35d3e0542cf1f1f06aee5c..ac216d99cce109bd5f90d84142094e7bbeaf0354 100644 (file)
@@ -578,7 +578,8 @@ It can be quoted, or be inside a quoted form."
                (or (symbol-file sym 'defvar)
                    (help-C-file-name sym 'var))))
     (`feature (when (featurep sym)
-                (find-library-name (symbol-name sym))))
+                (ignore-errors
+                  (find-library-name (symbol-name sym)))))
     (`defface (when (facep sym)
                 (symbol-file sym 'defface)))))