From: Dimiter "malkia" Stanev
Subject: Scripts for starting SLIME + custom initialization common lisp fle.
Date: 
Message-ID: <5nkfccFimj5fU1@mid.individual.net>
Hi,

I'm creating a simple development environment based on EMACS + SLIME on 
Windows: [ http://code.google.com/p/clow ].
Basically I would like to create a bunch of .bat-files that would start 
emacs with different environments - ECL, CLISP, Allegro, SBCL, 
LispWorks, CormanLisp, GCL or ABCL - any existent Common-Lisp for Windows.

So far I've got SBCL, Allegro, Lispworks working, ECL and CLISP too, but 
the problem I'm having is that once I would like a special 
initialization file to be loaded for each one of them (clow-init.lisp).

This is for example my clow-emacs.bat script, it loads emacs.bat with 
clow-emacs.el as init script

clow-emacs.bat:
@%~dp0emacs -l %~dpn0.el %*

Here is the emacs lisp script:
clow-emacs.el
(add-to-list 'load-path (concat default-directory ".systems/slime/"))
(setq inferior-lisp-program (concat default-directory 
"../lw/lispworks-5-0-0-x86-win32.exe -no-banner -init " (concat 
default-directory "clow-init.lisp")))
(require 'slime)
(slime-setup)
(slime)

With this script Lispworks loads and then it successfully loads 
clow-init.lisp, but when I'm doing this for ECL or CLISP, emacs just 
"hangs" (not really) but waits with message:

"Polling C:/WINDOWS/TEMP/slime.180"... (Abort with "M-x 
slime-abort-connection")

If I remove from the script -init " (concat default-directory 
"clow-init.lisp")) it works, but then I have to manually load it.

I've also tried changing the script to:
(add-to-list 'load-path (concat default-directory ".systems/slime-2.0/"))
(setq inferior-lisp-program (concat default-directory 
".systems/ecl/ecl.exe"))
(require 'slime)
(slime-setup)
(slime)
(slime-load-file (concat default-directory "clow-init.lisp"))

But it didn't work either. What would be a good way to do it (I know 
there won't be one and only way).

And If anyone is interrested in CLOW (Common Lisp On Windows) - It's a 
4MB package, which once installed into one of your folders (say 
c:\clow), by running clow-update.cmd it would update various packages, 
editors (EMACS), or environments (ECL) and install them in the 
c:\clow\.systems folder.

It's still not ready for usage, but if anyone is willing to help it can 
be improved.
From: Kamen TOMOV
Subject: Re: Scripts for starting SLIME + custom initialization common lisp fle.
Date: 
Message-ID: <u3aw91k66.fsf@cybuild.com>
On Tue, Oct 16 2007, Dimiter \"malkia\" Stanev wrote:

> Hi,
>
> I'm creating a simple development environment based on EMACS + SLIME
> on Windows: [ http://code.google.com/p/clow ].
> Basically I would like to create a bunch of .bat-files that would
> start emacs with different environments - ECL, CLISP, Allegro, SBCL,
> LispWorks, CormanLisp, GCL or ABCL - any existent Common-Lisp for
> Windows.

You can start Emacs with the option "-f" and invoke an ELisp function
where you can put all the initialization code for any particular
environment and save the rest of us from the hideous BAT file
language.

> ...
> clow-emacs.bat:
> @%~dp0emacs -l %~dpn0.el %*
>

Nobody cares what %~dpn0 is.


��������,

-- 
�����