1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-27 02:10:52 -08:00

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:
Dmitry Gutov 2015-11-24 00:11:51 +02:00
parent 345a9c8cd0
commit 58dfc16cd0

View file

@ -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