[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: package.el -- hardwires /usr/share/emacs
From: |
Lennart Borgman |
Subject: |
Re: package.el -- hardwires /usr/share/emacs |
Date: |
Tue, 21 Dec 2010 23:47:30 +0100 |
On Tue, Dec 21, 2010 at 11:38 PM, T.V. Raman <address@hidden> wrote:
> In package.el:
> the definition of package-directory-list hard-wires
> "/usr/share/emacs/site-lisp/elpa"
> Is this intentional?
>
> (defvar package-directory-list
> (list (file-name-as-directory package-user-dir)
> "/usr/share/emacs/site-lisp/elpa/")
> "List of directories to search for packages.")
In the trunk this has been changed. Maybe this change is not
backported to Emacs 23.3? In the trunk it looks like:
(defcustom package-directory-list
;; Defaults are subdirs named "elpa" in the site-lisp dirs.
(let (result)
(dolist (f load-path)
(and (stringp 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.
Each directory name should be absolute.
These directories contain packages intended for system-wide; in
contrast, `package-user-dir' contains packages for personal use."
:type '(repeat directory)
:risky t
:group 'package
:version "24.1")