[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Bug in package.el refuses emacs to load
From: |
Noorul Islam K M |
Subject: |
[PATCH] Bug in package.el refuses emacs to load |
Date: |
Sat, 04 Sep 2010 10:31:33 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
I seems to have 'nil' as one of the members of the list
'load-path'. Being this the case package.el breaks while defining a
custom variable. Attached is the patch for this.
package.el: Fix to check 'nil' member in load-path.
* lisp/emacs-lisp/package.el (package-directory-list) : Ignore 'nil'
member from load-path if exists.
Thanks and Regards
Noorul
=== modified file 'lisp/emacs-lisp/package.el'
*** lisp/emacs-lisp/package.el 2010-08-26 03:31:34 +0000
--- lisp/emacs-lisp/package.el 2010-09-04 04:35:36 +0000
*************** packages in `package-directory-list'."
*** 260,266 ****
;; Defaults are subdirs named "elpa" in the site-lisp dirs.
(let (result)
(dolist (f load-path)
! (if (equal (file-name-nondirectory f) "site-lisp")
(push (expand-file-name "elpa" f) result)))
(nreverse result))
"List of additional directories containing Emacs Lisp packages.
--- 260,266 ----
;; Defaults are subdirs named "elpa" in the site-lisp dirs.
(let (result)
(dolist (f load-path)
! (if (and f (equal (file-name-nondirectory f) "site-lisp"))
(push (expand-file-name "elpa" f) result)))
(nreverse result))
"List of additional directories containing Emacs Lisp packages.
- [PATCH] Bug in package.el refuses emacs to load,
Noorul Islam K M <=