all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noorul Islam K M <noorul@noorul.com>
To: emacs-devel@gnu.org
Subject: [PATCH] Bug in package.el refuses emacs to load
Date: Sat, 04 Sep 2010 10:31:33 +0530	[thread overview]
Message-ID: <87wrr2gl02.fsf@sajida.noorul.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]


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


[-- Attachment #2: package.el.txt --]
[-- Type: text/plain, Size: 881 bytes --]

=== 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.


             reply	other threads:[~2010-09-04  5:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04  5:01 Noorul Islam K M [this message]
2010-09-04 17:55 ` [PATCH] Bug in package.el refuses emacs to load Chong Yidong
2010-09-05  4:59   ` Ted Zlatanov
2010-09-05  6:23     ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrr2gl02.fsf@sajida.noorul.com \
    --to=noorul@noorul.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.