From xemacs-m  Sun Sep 14 14:17:00 1997
Received: from axl01it (axl01it.ntc.nokia.com [131.228.118.232])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA28383
	for <xemacs-beta@xemacs.org>; Sun, 14 Sep 1997 14:16:59 -0500 (CDT)
Received: from zeus.tele.nokia.fi (zeus.tele.nokia.fi [131.228.134.50]) by axl01it (8.8.5/8.6.9) with SMTP id WAA10382 for <xemacs-beta@xemacs.org>; Sun, 14 Sep 1997 22:16:17 +0300 (EET DST)
Received: from helene.tele.nokia.fi (helene.tele.nokia.fi [131.228.134.149]) by zeus.tele.nokia.fi (8.6.4/8.6.4) with ESMTP id WAA12650 for <xemacs-beta@xemacs.org>; Sun, 14 Sep 1997 22:20:30 +0300
From: Jari Aalto <jaalto@tre.tele.nokia.fi>
Received: from localhost (jaalto@localhost) by helene.tele.nokia.fi (8.6.4/8.6.4) id PAA19576; Sun, 14 Sep 1997 15:22:09 -0400
Date: Sun, 14 Sep 1997 15:22:09 -0400
Message-Id: <199709141922.PAA19576@helene.tele.nokia.fi>
To: xemacs-beta@xemacs.org
Subject: Suggestion: instllation of lisp files
X-info: Emacs tiny tools: ftp://cs.uta.fi/pub/ssjaaa/
Reply-to: <jari.aalto@poboxes.com> (pgp preferred ssjaaa@uta.fi | pgp -fka)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sun_Sep_14_22:22:08_1997-1"
Content-Transfer-Encoding: 7bit

--Multipart_Sun_Sep_14_22:22:08_1997-1
Content-Type: text/plain; charset=US-ASCII

        Hi,

        I suggested this to my University's admin and he thought that
        it was coold idea. Would you consider if the next XEmacs
        release would do the same.

        Problem:  The lisp files are scattered along multiple directories
        under the installation lisp tree. This is perfectly okay when
        we consider nice package placement and overall structure.

        But, it is not okay from the user's point of view. First, it
        cause XEmacs laod-path to be really big. The impact is slow
        search time when some package has to be loaded: every subdir must
        be checked in the order or dirs in load-path.

        Second, Without some nice recursive grep around it's a bit
        difficult for a code developer to grep "Where is that and that"

        Suggestion:

        Notning needs to be changed, but instead the XEmacs installation
        script would provide a shell script that would create

            ../lisp/LINKS/

        directorory which would simply include softlinks to every package
        in XEmacs lisp tree. This way there would be one, single, directory
        which could be put to load-path (Just like in Emacs; no more search
        penalty) nad User}s could now go to that dir and use simple
        grep to find things.

        I'm aware that this is Unix specific solution, but please consider
        this choice. I'm sure ytou will find the best way to make this
        kind of installation.

        Here is my script that I sent to our University's sysadm to create
        the symlinks to current directory. Feel free to convert it to
        sh script. I just feel more comfortable with c-shell scripting.
        (I know about sh/csh wars but so fas csh had been just fine for me)

        The script is started from ../lisp/LINKS/ directory and it will
        draw the softlinks.

        Cheers!
        jari




--Multipart_Sun_Sep_14_22:22:08_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="xe-links.sh"
Content-Transfer-Encoding: 7bit

#!/bin/csh -f
#
# program : xe-links.sh
# @(#) $Contactid: <jari.aalto@poboxes.com> $
# @(#) Creates links to _current_ director from all XE lisp source dirs.
# $Id: xe-links.sh,v 1.1 1997/08/27 13:27:28 jaalto Exp jaalto $

if ( -d /hp-ux/ ) then
    # In HP; they are here
    #
    set base = /opt/local/lib/xemacs-19.14/lisp
    set dirs = ( `(cd $base ; ls -l | grep "^d" | awk '{print $9}'|sort )` )
endif

if ( -d /vol/ ) then
    # This if for SUNos
    #
    set base = /vol/xemacs/lib/xemacs-19.14/lisp

    set dirs = ( `(cd $base ; ls -l | grep "^d" | cut -c55-80|sort )` )
endif

foreach arg ( $dirs )
    set files = ( `ls -1 $base/$arg/*el` )
    echo "Linking files from directory $arg"
    foreach file ( $files )
        set to = $file:t        # Get filename only
        ln -s $file $to
    end
end

exit 0


# end of file

--Multipart_Sun_Sep_14_22:22:08_1997-1--

