OT: emacs site-lisp subdirs

"clemens fischer" <[email protected]> 25 Jun 2003 12:45:24 +0200
Newsgroups gmane.comp.djb.package
Message-ID <[email protected]>
* Paul Jarc:

> There's Emacs itself - but it always knows where its own installed
> site-lisp directory is.  There are also installers for elisp
> packages.  But the way I do things, they get installed as separate
> packages anyway; they have their own site-lisp directory, and they
> don't need to know where Emacs's site-lisp directory was created.  I
> had to add some code to my .emacs to find all other packages'
> site-lisp directories and add them to load-path, but that was easy
> enough to write.

why don't you simply rely on ./subdirs.el?

  0 p1 $ m /emacs/site-lisp/
  bbdb/                  date-calc.elc*         psgml-startup.el*      records-load.el*       records.elc*
  boxquote.el*           emacs-w3m/             python-mode.el*        records-search.el*     subdirs.el*
  boxquote.elc*          etc/                   quickurl.el*           records-search.elc*    w3/
  browse-kill-ring.el*   ibuffer.el*            quickurl.elc*          records-tex.el*        xref-bmk.el*
  browse-kill-ring.elc*  ibuffer.elc*           records-autoloads.el*  records-tex.elc*       xref-bmk.elc*
  browse-url.el*         ilisp/                 records-autoloads.elc* records-util.el*       xref-hks.el*
  browse-url.elc*        oort/                  records-dindex.el*     records-util.elc*      xref-hks.elc*
  cua.el*                po-compat.el*          records-dindex.elc*    records-vars.el*       xref.el*
  cua.elc*               po-mode.el*            records-index.el*      records-vars.elc*      xref.elc*
  date-calc.el*          psgml/                 records-index.elc*     records.el*            
  /src/bglibs-1.009/crypto

  0 p1 $ m /emacs/site-lisp/subdirs.el 
  (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
      (normal-top-level-add-subdirs-to-load-path))

  clemens