diff options
| author | Dmitry Gutov | 2015-11-24 00:11:51 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2015-11-24 00:12:13 +0200 |
| commit | 58dfc16cd0befe0122ecc2c452e48135495519aa (patch) | |
| tree | 12d2c609a5a1eba23a00e897e8241ebbe6402589 | |
| parent | 345a9c8cd07111a8c8367e59404688544e8b8b1d (diff) | |
| download | emacs-58dfc16cd0befe0122ecc2c452e48135495519aa.tar.gz emacs-58dfc16cd0befe0122ecc2c452e48135495519aa.zip | |
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).
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 7e55c8e14bc..b0ef4b20b7a 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -832,8 +832,9 @@ non-nil result supercedes the xrefs produced by | |||
| 832 | (xref-elisp-location-file l)) | 832 | (xref-elisp-location-file l)) |
| 833 | 833 | ||
| 834 | (defun elisp-library-roots () | 834 | (defun elisp-library-roots () |
| 835 | (defvar package-user-dir) | 835 | (if (boundp 'package-user-dir) |
| 836 | (cons package-user-dir load-path)) | 836 | (cons package-user-dir load-path) |
| 837 | load-path)) | ||
| 837 | 838 | ||
| 838 | ;;; Elisp Interaction mode | 839 | ;;; Elisp Interaction mode |
| 839 | 840 | ||