From xemacs-m  Sun Jul 27 08:11:47 1997
Received: from bittersweet.inetarena.com (karlheg@bittersweet.inetarena.com [206.129.216.38])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA00994
	for <xemacs-beta@xemacs.org>; Sun, 27 Jul 1997 08:11:20 -0500 (CDT)
Received: (from karlheg@localhost)
	by bittersweet.inetarena.com (8.8.5/8.8.5) id GAA02232;
	Sun, 27 Jul 1997 06:10:54 -0700
To: XEmacs BETA <xemacs-beta@xemacs.org>
Subject: Re: Open issues with "Berlin"
References: <m2u3hhudzy.fsf@altair.xemacs.org>
X-Face: /Q}=yl}1_v7nP)xXo5XjG8+tl@=uVu7o5u6)f]zN?+<hB!K.m9:[|*p34jVN`O;:XZXVSy>/\R>qDt(t8w!-i{(y0"`jFw^uk8inzO9wXabd'CdjUWfC\GHi:6nO*YC89#-qD>Q4r%9!V"<RYJ=7D#$";q=zML5'!=wvXk^$`6FT=5CMofQX)WUKt0p:OKl.mFOXx/D
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Sun_Jul_27_06:10:53_1997-1"
Content-Transfer-Encoding: 7bit
From: karlheg+xemacs@inetarena.com (Karl M. Hegbloom)
Date: 27 Jul 1997 06:10:53 -0700
In-Reply-To: SL Baur's message of "27 Jul 1997 00:54:09 -0700"
Message-ID: <87iuxwr676.fsf@bittersweet.inetarena.com>
Lines: 96
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta14) - "Vienna"

--Multipart_Sun_Jul_27_06:10:53_1997-1
Content-Type: text/plain; charset=US-ASCII

>>>>> "SLB" == SL Baur <steve@xemacs.org> writes:

    SLB> * Is /etc/xemacs a good enough package default location?
    SLB> Other possibilities might be /var/lib/xemacs or /var/xemacs,
    SLB> /usr/local/lib/xemacs-packages, /usr/local/lib/emacs-packages
    SLB> or where?

 /usr/local/share/xemacs/packages or /usr/local/lib/xemacs/packages
would be more in keeping with the Linux FSSTND (Filesystem standard).
It's good there is a configure option to allow specification of the
packages directory.

 This will be useful for people like the Debian package maintainer,
who will be able to use that option to place XEmacs packages under
/usr/share/xemacs/packages, or /usr/lib/xemacs/packages.

 From Debian Linux, there is also an /etc/emacs directory, used for
package-specific site-wide initializations and this:


--Multipart_Sun_Jul_27_06:10:53_1997-1
Content-Type: text/plain; charset=US-ASCII

;;; debian-rundir.el --- run all lisp startup files in a directory.

;; Copyright (C) 1996 Mark Eichin

;; Maintainer: Mark Eichin <eichin@kitten.gen.ma.us>
;; Keywords: debian

;; This file is part of the debian release of GNU Emacs, and will
;; be contributed to the FSF after testing. It is released under the same
;; terms, namely the GPL v2 or later.

;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;; This file provides functions to process a directory full of lisp
;; files in the style of the System V "rc0.d" mechanism, namely the
;; directory contents are sorted alphabetically, and the files are
;; conventionally named 00program.el (default of 50, but allowing
;; order.)

(defvar emacs-debian-default-directory
  (if (string-match ".*XEmacs.*" emacs-version)
      (let ((point
             (string-match "[0-9]*\.[0-9]*.*XEmacs.*" emacs-version)))
        (concat "/etc/xemacs/site-start-"
                (substring emacs-version point (+ point 2))
                ".d"))
  "/etc/emacs/site-start.d")
  "The default directory for this version of XEmacs to load from")

(defun debian-run-directory (&optional dir)
  "Load each file in the form 00filename.el stored in the path.
The files are sorted so order can be controlled."
  (interactive "DConfiguration directory : ")
  (let ((path (if dir dir emacs-debian-default-directory)))
    (mapcar
     (lambda (file)
       (if debug-on-error
	   (load-file file)
	 (condition-case ()
	     (progn
	       (load file nil t t)
	       (message "*** %s loaded ***" (file-name-nondirectory file)))
	   (error (message "Error while loading %s" file)))))
     (directory-files path t "^[0-9][0-9].*\\.el$" nil))))


--Multipart_Sun_Jul_27_06:10:53_1997-1
Content-Type: text/plain; charset=US-ASCII

mailto:karlheg+sig@inetarena.com (Karl M. Hegbloom)
http://www.inetarena.com/~karlheg
Portland, OR  USA
Debian GNU 1.3  Linux 2.0.30+parport AMD K5 PR-133

--Multipart_Sun_Jul_27_06:10:53_1997-1--

