Re: A flaw in current emacsen package setup?
- To: debian-emacsen@lists.debian.org
- Cc: Sam Hartman <hartmans@mekinok.com>, emacsen-common@packages.debian.org, xae@packages.debian.org, tramp@packages.debian.org, speedbar@packages.debian.org, pcl-cvs@packages.debian.org, maxima@packages.debian.org, gnuserv@packages.debian.org, erc@packages.debian.org, emacs-goodies-el@packages.debian.org, eieio@packages.debian.org, dpkg-dev-el@packages.debian.org, debbugs-el@packages.debian.org, cxref@packages.debian.org, calc@packages.debian.org, auctex@packages.debian.org, elib@packages.debian.org
- Subject: Re: A flaw in current emacsen package setup?
- From: Rob Browning <rlb@defaultvalue.org>
- Date: Wed, 30 Jan 2002 14:03:51 -0600
- Message-id: <[🔎] 87vgdjli6w.fsf@raven.i.defaultvalue.org>
- In-reply-to: <87adx0970t.fsf@glaurung.green-gryphon.com> (Manoj Srivastava's message of "Mon, 03 Dec 2001 00:01:22 -0600")
- References: <87adx0970t.fsf@glaurung.green-gryphon.com>
Manoj Srivastava <srivasta@debian.org> writes:
> Perhaps add-after-local (or a renamed version of the function)
> should be provided by default, and policy changed to recommend the
> use of that function.
>
> I am copying this message to all packages currently violating
> the emacsen policy on load-paths. Please consider this fair warning
> for serious bugs to be filed when we reach a solution of this issue.
OK, the new function is (debian-pkg-add-load-path-item <item>) and all
add-on packages are required to use this to augment the load path.
Here's the relevant revised policy section. Please read it, and
please let me know if there are problems. The code hasn't been
heavily tested yet.
9) Emacs lisp load path.
At a minimum, each emacs must have the following directories in the
given order in their load path:
/etc/<flavor>
/etc/emacs
/usr/local/share/emacs/<upstream>/site-lisp
/usr/local/share/emacs/site-lisp
/usr/share/emacs/<flavor>/site-lisp
/usr/share/emacs/site-lisp
where <upstream> is the normal emacs upstream version number for
the relevant flavor like 20.2 or 19.34.
Emacs add-on packages may not modify load-path directly. They must
use (debian-pkg-add-load-path-item <path>). This function will
make sure that their additions end up in the right place -- before
the emacs system directories, but after the /usr/local/
directories. Also, add-on packages will need to either check
(fboundp 'debian-pkg-add-load-path-item) before calling this
function, or add a dependency on emacsen-common (>= 1.4.14).
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD
Reply to: