Commit 4d3a595d authored by Stephen Leake's avatar Stephen Leake

`load-path' should contain only directory names

* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
`load-path' should contain only directory names
parent 0f443a12
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment