From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noorul Islam K M Newsgroups: gmane.emacs.devel Subject: [PATCH] Bug in package.el refuses emacs to load Date: Sat, 04 Sep 2010 10:31:33 +0530 Message-ID: <87wrr2gl02.fsf@sajida.noorul.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1283576532 16548 80.91.229.12 (4 Sep 2010 05:02:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Sep 2010 05:02:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 04 07:02:11 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OrktG-0001Gg-NG for ged-emacs-devel@m.gmane.org; Sat, 04 Sep 2010 07:02:11 +0200 Original-Received: from localhost ([127.0.0.1]:49367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrktG-0001kU-5D for ged-emacs-devel@m.gmane.org; Sat, 04 Sep 2010 01:02:10 -0400 Original-Received: from [140.186.70.92] (port=52674 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Orkt9-0001kP-1j for emacs-devel@gnu.org; Sat, 04 Sep 2010 01:02:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Orkt7-000658-FD for emacs-devel@gnu.org; Sat, 04 Sep 2010 01:02:02 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:56177) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orkt7-00064j-Av for emacs-devel@gnu.org; Sat, 04 Sep 2010 01:02:01 -0400 Original-Received: by pvc30 with SMTP id 30so1523281pvc.0 for ; Fri, 03 Sep 2010 22:01:59 -0700 (PDT) Original-Received: by 10.114.66.20 with SMTP id o20mr476101waa.163.1283576519636; Fri, 03 Sep 2010 22:01:59 -0700 (PDT) Original-Received: from sajida.noorul.com ([117.193.132.86]) by mx.google.com with ESMTPS id q6sm5288412waj.10.2010.09.03.22.01.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Sep 2010 22:01:59 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129664 Archived-At: --=-=-= 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 --=-=-= Content-Disposition: inline; filename=package.el.txt === 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. --=-=-=--