--- slime-1.0.cvs20050218.orig/doc/contributors.texi
+++ slime-1.0.cvs20050218/doc/contributors.texi
@@ -0,0 +1,22 @@
+@multitable @columnfractions 0.333333 0.333333 0.333333
+
+@item Helmut Eller @tab Luke Gorrie @tab Marco Baringer
+@item Alan Ruttenberg @tab Daniel Barlow @tab Peter Seibel
+@item Wolfgang Jenkner @tab Martin Simmons @tab Lawrence Mitchell
+@item Edi Weitz @tab Matthias Koeppe @tab Christophe Rhodes
+@item Brian Downing @tab Bill Clementson @tab Thomas Schilling
+@item Michael Weber @tab Matthew Danish @tab James Bielman
+@item Thomas F. Burdick @tab Lars Magne Ingebrigtsen @tab John Paul Wallington
+@item Bryan O'Connor @tab Alan Shutko @tab Utz-Uwe Haus
+@item Tiago Maduro-Dias @tab Robert Lehr @tab Robert E. Brown
+@item Raymond Toy @tab Jouni K Seppanen @tab Eric Blood
+@item Eduardo Muñoz @tab Chris Capel @tab Bj@norsko{}rn Nordb@norsko{}
+@item Andras Simon @tab Zach Beane @tab Wolfgang Mederle
+@item Travis Cross @tab Thomas Burdick @tab Sean O'Rourke
+@item Rui Patrocínio @tab Reini Urban @tab Pawel Ostrowski
+@item Lynn Quam @tab Lasse Rasinen @tab Julian Stecklina
+@item Jan Rychter @tab Ivan Boldyrev @tab Ignas Mikalajunas
+@item Ian Eslick @tab Hannu Koivisto @tab Frederic Brunel
+@item Christian Lynbech @tab Brian Mastenbrook @tab Barry Fishman
+@item Andreas Fuchs @tab Alexey Dejneka @tab Alan Caulkins
+@end multitable
--- slime-1.0.cvs20050218.orig/slime.el
+++ slime-1.0.cvs20050218/slime.el
@@ -82,15 +82,19 @@
   (when slime-use-autodoc-mode
     (slime-autodoc-mode 1)))
 
-(eval-and-compile 
+;;; Modified for Debian since byte-compiled files are in a separate
+;;; area to the source files this variable expects to locate
+(eval-and-compile
   (defvar slime-path
-    (let ((path (or (locate-library "slime") load-file-name)))
-      (and path (file-name-directory path)))
+    "/usr/share/emacs/site-lisp/slime/"
+;    (let ((path (or (locate-library "slime") load-file-name)))
+;      (and path (file-name-directory path)))
     "Directory containing the Slime package.
 This is used to load the supporting Common Lisp library, Swank.
 The default value is automatically computed from the location of the
 Emacs Lisp package."))
 
+
 
 ;;;; Customize groups
 ;;
@@ -1313,13 +1317,17 @@
            (slime-net-close conn))
          (get-buffer-process buffername))))
 
+
+;;; Modified for Debian
 (defun slime-init-command ()
   "Return a string to initialize Lisp."
-  (let ((swank (slime-to-lisp-filename (if (file-name-absolute-p slime-backend)
-                                           slime-backend
-                                         (concat slime-path slime-backend))))
-        (mp (if slime-multiprocessing "(swank:startup-multiprocessing)\n" "")))
-    (format "(load %S :verbose t)\n%s" swank mp)))
+  (format "(clc:clc-require :swank)\n%s"
+          (if slime-multiprocessing "(swank:startup-multiprocessing)\n" "")))
+;;   (let ((swank (slime-to-lisp-filename (if (file-name-absolute-p slime-backend)
+;;                                            slime-backend
+;;                                          (concat slime-path slime-backend))))
+;;         (mp (if slime-multiprocessing "(swank:startup-multiprocessing)\n" "")))
+;;     (format "(load %S :verbose t)\n%s" swank mp)))
 
 (defun slime-start-lisp (command buffername init-string)
   "Start Lisp with COMMAND in BUFFERNAME and send INIT-STRING to it.
--- slime-1.0.cvs20050218.orig/swank.asd
+++ slime-1.0.cvs20050218/swank.asd
@@ -17,5 +17,25 @@
 ;; use `M-x slime-connect' to connect Emacs to it.
 
 (asdf:defsystem :swank
-    :components ((:file "swank-loader")))
+  :name "SWANK"
+  :serial t
+  :components ((:file "swank-backend")
+	       (:file "nregex")
+	       #+cmu (:file "swank-source-path-parser")
+	       #+clisp (:file "xref")
+	       #+(or openmcl clisp) (:file "metering")
+	       #+sbcl (:file #+sbcl "swank-sbcl")
+	       #+(or sbcl cmu) (:file "swank-source-path-parser")
+	       #+cmu (:file "swank-cmucl")
+	       #+openmcl (:file "swank-openmcl")
+	       #+lispworks (:file "swank-lispworks")
+	       #+allegro (:file "swank-allegro")
+	       #+clisp (:file "swank-clisp")
+	       #+armedbear (:file "swank-abcl")
+	       #+(or sbcl openmcl lispworks allegro clisp)
+	       (:file "swank-gray")
+	       (:file "swank")))
+	       
+	       
+;    :components ((:file "swank-loader")))
 
--- slime-1.0.cvs20050218.orig/debian/changelog
+++ slime-1.0.cvs20050218/debian/changelog
@@ -0,0 +1,6 @@
+slime (1.0.cvs20050218-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Robert Marlow <bobstopper@bobturf.org>  Fri, 18 Feb 2005 15:26:19 +0800
+
--- slime-1.0.cvs20050218.orig/debian/compat
+++ slime-1.0.cvs20050218/debian/compat
@@ -0,0 +1 @@
+4
--- slime-1.0.cvs20050218.orig/debian/README.Debian
+++ slime-1.0.cvs20050218/debian/README.Debian
@@ -0,0 +1,30 @@
+(From http://www.cliki.net/SLIME-HOWTO)
+
+Here is the Elisp code. You can paste this into your ~/.emacs after
+changing the path on the first line to suit your installation.
+
+(add-to-list 'load-path "/the/path/to/slime")
+(require 'slime)
+(add-hook 'lisp-mode-hook (lambda () (slime-mode t)))
+(add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t)))
+;; Optionally, specify the lisp program you are using. Default is "lisp"
+(setq inferior-lisp-program "yourlisp") 
+
+--
+
+Note since you're using debian you probably don't need the add-to-list
+step. Also, if you're using SBCL "yourlisp" should be "sbcl".
+
+You will need both slime-el and cl-swank to use SLIME in this way.
+
+You can start SLIME and swank on separate machines. Start up your lisp
+image on the server and use swank:create-server to start the swank
+server. I like to use it with :dont-close t keyword argument. Then,
+your machine running emacs, start slime using slime-connect. Specify
+the appropriate IP address port and you should connect successfully.
+
+More information about SLIME can be found at
+http://www.cliki.net/SLIME
+and the slime info document.
+
+
--- slime-1.0.cvs20050218.orig/debian/slime-el.docs
+++ slime-1.0.cvs20050218/debian/slime-el.docs
@@ -0,0 +1,2 @@
+doc/slime.dvi
+doc/slime.ps
--- slime-1.0.cvs20050218.orig/debian/control
+++ slime-1.0.cvs20050218/debian/control
@@ -0,0 +1,30 @@
+Source: slime
+Section: devel
+Priority: optional
+Maintainer: Robert Marlow <bobstopper@bobturf.org>
+Uploaders: Kevin M. Rosenberg <kmr@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: slime-el
+Architecture: all
+Depends: emacsen-common
+Recommends: swank
+Description: The Superior Lisp Interaction Mode for Emacs
+ SLIME is the Superior Lisp Interaction Mode for Emacs. This is an 
+ ILISP-like development environment intended for maximum integration with
+ CMUCL, SBCL and several other common lisp implementations.
+ .
+ You will need a common lisp implementation running SWANK on a network
+ accessible machine to use this package.
+
+Package: cl-swank
+Depends: common-lisp-controller
+Architecture: all
+Description: Common Lisp Server for SLIME
+ Swank is the backend for SLIME which runs on your common lisp 
+ implementation of choice. SLIME needs to connect to a swank server
+ to be useful. Swank is provided in a separate package to SLIME since
+ some people may wish to run swank and slime on separate machines. In
+ this case swank can work as a network capable, editor attachable 
+ equivalent of detachtty.
--- slime-1.0.cvs20050218.orig/debian/rules
+++ slime-1.0.cvs20050218/debian/rules
@@ -0,0 +1,132 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
+cl-name		:= swank
+el-name		:= slime
+
+cl-pkg		:= cl-swank
+el-pkg		:= slime-el
+
+cl-srcs		:= $(wildcard *.lisp) swank.asd
+el-srcs		:= $(wildcard *.el)
+
+cl-base		:= usr/share/common-lisp
+cl-source	:= $(cl-base)/source
+cl-systems	:= $(cl-base)/systems
+el-base		:= usr/share/emacs/site-lisp
+
+cl-inst		:= $(cl-source)/$(cl-name)
+el-inst		:= $(el-base)/$(el-name)
+
+shell-scripts	:= $(wildcard *.sh)
+cl-docs-extra	:= usr/share/doc/$(cl-pkg)/extra
+
+el-docs		:= doc/slime.aux doc/slime.cp doc/slime.fn doc/slime.info doc/slime.ky doc/slime.log doc/slime.pg doc/slime.dvi	doc/slime.toc doc/slime.tp doc/slime.vr doc/slime.ps
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp 
+
+	# Add here commands to compile the arch part of the package.
+	touch build-arch-stamp
+
+build-indep: build-indep-stamp
+	$(MAKE) -C doc
+
+build-indep-stamp: configure-stamp 
+
+	# Add here commands to compile the indep part of the package.
+	touch build-indep-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
+	rm $(el-docs)
+
+	dh_clean 
+
+install: 
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+
+	dh_installdirs -p $(cl-pkg) $(cl-systems)
+	dh_installdirs -p $(cl-pkg) $(cl-inst)
+	dh_installdirs -p $(el-pkg) $(el-inst)
+
+	dh_install -p $(cl-pkg) $(cl-srcs) $(cl-inst)
+	dh_install -p $(cl-pkg) $(shell-scripts) $(cl-docs-extra)
+	dh_install -p $(el-pkg) $(el-srcs) $(el-inst)
+	dh_install -p $(el-pkg) ChangeLog $(el-inst)
+
+	dh_link -p $(cl-pkg) $(cl-inst)/swank.asd $(cl-systems)/swank.asd
+
+	dh_installinfo -p $(el-pkg) doc/slime.info
+
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate	
+	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+#	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+
+binary: install binary-common
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
--- slime-1.0.cvs20050218.orig/debian/copyright
+++ slime-1.0.cvs20050218/debian/copyright
@@ -0,0 +1,57 @@
+This package was debianized by Robert Marlow <bobstopper@bobturf.org> on
+Mon, 14 Feb 2005 14:43:52 +0800.
+
+It was downloaded from http://common-lisp.net/project/slime/
+
+Upstream Authors: Luke Gorrie, Helmut Eller
+
+
+Copyright:
+
+License as found in README:
+
+  SLIME is free software. The source files are licensed separately for
+  maximum compatibility with their host environment, for example
+  slime.el is GPL and swank-cmucl.lisp is public domain. See the
+  source files for more details.
+
+
+License as found in *.el files:
+
+;; This file is not part of GNU Emacs, but distributed under the same
+;; conditions as GNU Emacs, and is useless without GNU Emacs.
+
+;; 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:
+
+;; Kent Pitman and Xanalys Inc. have made the text of American National
+;; Standard for Information Technology -- Programming Language -- Common
+;; Lisp, ANSI X3.226-1994 available on the WWW, in the form of the Common
+;; Lisp HyperSpec.  This package makes it convenient to peruse this
+;; documentation from within Emacs.
+
+
+
+Note, a full copy of the GNU General Public License is packaged with Debian
+and should be found in /usr/share/common-licenses/GPL
+
+
+License as found in *.lisp files:
+
+;;; This code has been placed in the Public Domain.  All warranties
+;;; are disclaimed.
+
--- slime-1.0.cvs20050218.orig/debian/cl-swank.postinst
+++ slime-1.0.cvs20050218/debian/cl-swank.postinst
@@ -0,0 +1,24 @@
+#! /bin/sh
+# postinst script for slime
+
+case "$1" in
+    configure)
+	/usr/sbin/register-common-lisp-source swank
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
--- slime-1.0.cvs20050218.orig/debian/docs
+++ slime-1.0.cvs20050218/debian/docs
@@ -0,0 +1,4 @@
+NEWS
+README
+HACKING
+PROBLEMS
--- slime-1.0.cvs20050218.orig/debian/cl-swank.prerm
+++ slime-1.0.cvs20050218/debian/cl-swank.prerm
@@ -0,0 +1,23 @@
+#! /bin/sh
+# see: dh_installdeb(1)
+
+case "$1" in
+    remove|upgrade|deconfigure)
+	/usr/sbin/unregister-common-lisp-source swank
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- slime-1.0.cvs20050218.orig/debian/slime-el.emacsen-install
+++ slime-1.0.cvs20050218/debian/slime-el.emacsen-install
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/slime
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=slime
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+#    SITEFLAG="-no-site-file"
+#else
+#    SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist. 
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+    echo install/${PACKAGE}: install Info links for ${FLAVOR}
+    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
--- slime-1.0.cvs20050218.orig/debian/slime-el.emacsen-remove
+++ slime-1.0.cvs20050218/debian/slime-el.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/slime
+
+FLAVOR=$1
+PACKAGE=slime
+
+if [ ${FLAVOR} != emacs ]; then
+    if test -x /usr/sbin/install-info-altdir; then
+        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/slime.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- slime-1.0.cvs20050218.orig/debian/slime-el.emacsen-startup
+++ slime-1.0.cvs20050218/debian/slime-el.emacsen-startup
@@ -0,0 +1,19 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian slime package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
+
+;; The slime package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...).  The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+                           (symbol-name flavor)
+                           "/site-lisp/slime")))
+  (when (file-directory-p package-dir)
+        (setq load-path (cons package-dir load-path))))
+
