diff options
author | Stephen Leake <stephen_leake@stephe-leake.org> | 2015-10-23 08:52:01 -0500 |
---|---|---|
committer | Stephen Leake <stephen_leake@stephe-leake.org> | 2015-10-23 08:54:17 -0500 |
commit | 4d3a595d8d3e6a111399e9f1c7dd3c3c30184e61 (patch) | |
tree | b8682cb15c0c71c3f655e89b2bfc4cba51db4a63 /lisp/emacs-lisp | |
parent | 0f443a12368d02e256c7e94c3de574c6ceaed86e (diff) | |
download | emacs-4d3a595d8d3e6a111399e9f1c7dd3c3c30184e61.tar.gz emacs-4d3a595d8d3e6a111399e9f1c7dd3c3c30184e61.tar.bz2 emacs-4d3a595d8d3e6a111399e9f1c7dd3c3c30184e61.zip |
`load-path' should contain only directory names
* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
`load-path' should contain only directory names
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 2dbcdf64940..2962da5a917 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -889,7 +889,8 @@ untar into a directory named DIR; otherwise, signal an error." " --- automatically extracted autoloads\n" ";;\n" ";;; Code:\n" - "(add-to-list 'load-path (or (file-name-directory #$) (car load-path)))\n" + ;; `load-path' should contain only directory names + "(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))\n" "\n;; Local Variables:\n" ";; version-control: never\n" ";; no-byte-compile: t\n" |