Don't use package-user-dir in elisp-library-roots if it's not bound
* lisp/progmodes/elisp-mode.el (elisp-library-roots): Don't use package-user-dir if it's not bound (bug#19759).
This commit is contained in:
@@ -832,8 +832,9 @@ non-nil result supercedes the xrefs produced by
|
||||
(xref-elisp-location-file l))
|
||||
|
||||
(defun elisp-library-roots ()
|
||||
(defvar package-user-dir)
|
||||
(cons package-user-dir load-path))
|
||||
(if (boundp 'package-user-dir)
|
||||
(cons package-user-dir load-path)
|
||||
load-path))
|
||||
|
||||
;;; Elisp Interaction mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user