diff options
| author | Chong Yidong | 2010-09-04 13:54:48 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-09-04 13:54:48 -0400 |
| commit | 0be01d2c8655f914e522877defa7b323c8cceb9c (patch) | |
| tree | f9c5b1c78d51c7c64dc1ef5d83288e24bfcacd8a | |
| parent | ebf662f4945f64dd36e0fe62a6cb7ab63c833a2e (diff) | |
| download | emacs-0be01d2c8655f914e522877defa7b323c8cceb9c.tar.gz emacs-0be01d2c8655f914e522877defa7b323c8cceb9c.zip | |
* emacs-lisp/package.el (package-directory-list): Only call file-name-nondirectory on a string.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index efec2b3fcb4..28092a6a086 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-04 Noorul Islam K M <noorul@noorul.com> (tiny change) | ||
| 2 | |||
| 3 | * emacs-lisp/package.el (package-directory-list): Only call | ||
| 4 | file-name-nondirectory on a string. | ||
| 5 | |||
| 1 | 2010-09-02 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-09-02 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * emacs-lisp/package.el (package--download-one-archive): Ensure | 8 | * emacs-lisp/package.el (package--download-one-archive): Ensure |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 6c5aee2a735..54c6a09dd9d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -260,8 +260,9 @@ packages in `package-directory-list'." | |||
| 260 | ;; Defaults are subdirs named "elpa" in the site-lisp dirs. | 260 | ;; Defaults are subdirs named "elpa" in the site-lisp dirs. |
| 261 | (let (result) | 261 | (let (result) |
| 262 | (dolist (f load-path) | 262 | (dolist (f load-path) |
| 263 | (if (equal (file-name-nondirectory f) "site-lisp") | 263 | (and (stringp f) |
| 264 | (push (expand-file-name "elpa" f) result))) | 264 | (equal (file-name-nondirectory f) "site-lisp") |
| 265 | (push (expand-file-name "elpa" f) result))) | ||
| 265 | (nreverse result)) | 266 | (nreverse result)) |
| 266 | "List of additional directories containing Emacs Lisp packages. | 267 | "List of additional directories containing Emacs Lisp packages. |
| 267 | Each directory name should be absolute. | 268 | Each directory name should be absolute. |