[CM] help with windows xemacs cm nightmare

Rick Taube taube@uiuc.edu
Fri, 28 Jun 2002 08:47:52 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C21E80.7D6F79A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

>I am really struggling to get CM to work on my windows machine - I =
wonder=20
>if any of you can give me a step-by-step guide...

Here is how to run cm in clisp under windows using xemacs.
I'll use unix style pathnames since xemacs and lisp support
them under windows.

1. lets assume that you have installed the latest=20
   cm in the directory:
        c:/cm-2.3.4/
   you should have the following files:
        c:/cm-2.3.4/bin/lisp.exe
        c:/cm-2.3.4/bin/cm.mem
        c:/cm-2.3.4/bin/cminit.lisp

2. Locate your Xemacs initialization file. On my windows
   machine xemacs installed it as:
        c:/.xemacs/custom.el
   If you dont have an xemacs init file then start xemacs
   and select "Save Options to Init File" under the main
   Options menu. That will create c:/.xemacs/custom.el

3. Get the following file from ccrma's ftp server=20
         ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el
   Put it in /.xemacs along with your custom.el file.

4. Edit your /.xemacs/custom.el file and add the following=20
   four lines. Note that the long line starting "(setq ...)"
   must really be on a single line in your custom.el file,
   ie it cannot contain an embedded Return character:

(require 'inf-lisp)
(load "c:/.xemacs/cm.el")
(setq inferior-lisp-program "c:/cm-2.3.4/bin/lisp.exe -M =
c:/cm-2.3.4/bin/cm.mem -i c:/cm-2.3.4/bin/cminit.lisp")
(global-set-key "\C-x\l" 'lisp-listener)


5. Quit and restart xemacs, this will reload your custom.el
   file so the changes take effect.

6. Type:   C-x l=20
  (this means to hold control key down while typeing x, then=20
  release the control key and type l. You can remember this
  because "l" stands for Lisp.

7. A new window should pop up with cm running in it...

8. Edit a lisp file, this will put the edit buffer in Lisp Mode
   and give you the Lisp menu in the buffer's menu bar. You can
   use commands from this menu to interact with the Lisp window.
   The commands will work in all lisps (clisp,acl,cmucl,sbcl).
   To automatically activate lisp-mode whenever you edit
   any file related to cm and clm add the following to
   your custom.el file:

  (setq auto-mode-alist
      (append '(("\\.clm$"  . lisp-mode)
                ("\\.cm$"   . lisp-mode)
                ("\\.cmn$"  . lisp-mode)
                ("\\.ins$"  . lisp-mode)
                ("\\.cl$"   . lisp-mode)
                ("\\.lisp$" . lisp-mode)
                ("\\.scm$" . lisp-mode))=20
       auto-mode-alist))
          =20
I hope this helps! For what its worth I verified these instructions on a =
windows machine I dont normally use
so they should actually work for someone other than me.



------=_NextPart_000_0015_01C21E80.7D6F79A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&gt;I am really struggling to get CM to work on my windows machine =
- I=20
wonder <BR>&gt;if any of you can give me a step-by-step guide...</DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>Here is how to run cm in clisp under =
windows=20
using xemacs.<BR>I'll use unix style pathnames since xemacs and lisp=20
support<BR>them under windows.</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>1. lets assume that you have =
installed the latest=20
</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp; cm in the=20
directory:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c:/cm-2.3.4/<BR>&nbsp;&nbsp; you should have the following=20
files:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c:/cm-2.3.4/bin/lisp.exe<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c:/cm-2.3.4/bin/cm.mem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c:/cm-2.3.4/bin/cminit.lisp</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>2. Locate your Xemacs initialization =
file. On my=20
windows<BR>&nbsp;&nbsp; machine xemacs installed it=20
as:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp; If you dont have an =
xemacs init file=20
then start xemacs</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp;&nbsp;and select "Save =
Options to=20
Init File" under the main</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp; Options menu. That will =
create=20
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier><FONT size=3D2>3. Get the following file from =
ccrma's ftp=20
server <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><A=20
href=3D"ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el"><FONT=20
size=3D2>ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el</FONT></A><BR><FO=
NT=20
size=3D2>&nbsp;&nbsp; Put it in /.xemacs along with your custom.el=20
file.</FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>4. Edit your /.xemacs/custom.el file =
and add the=20
following <BR>&nbsp;&nbsp; four lines. Note that the long line starting =
"(setq=20
...)"<BR>&nbsp;&nbsp; must really be on a single line in your custom.el=20
file,</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp; ie it cannot contain an =
embedded=20
Return character:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>(require 'inf-lisp)<BR>(load=20
"c:/.xemacs/cm.el")<BR>(setq inferior-lisp-program =
"c:/cm-2.3.4/bin/lisp.exe -M=20
c:/cm-2.3.4/bin/cm.mem -i =
c:/cm-2.3.4/bin/cminit.lisp")<BR>(global-set-key=20
"\C-x\l" 'lisp-listener)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV><FONT face=3DCourier>
<DIV><BR><FONT size=3D2>5. Quit and restart xemacs, this will reload =
your=20
custom.el<BR>&nbsp;&nbsp; file so the changes take effect.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>6. Type:&nbsp;&nbsp; C-x l <BR>&nbsp; (this means to =
hold=20
control key down while typeing x, then <BR>&nbsp; release the control =
key and=20
type l. You can remember this<BR>&nbsp; because "l" stands for=20
Lisp.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>7. A new window should pop up with cm running in=20
it...</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>8. Edit a lisp file, this will put the edit buffer =
in Lisp=20
Mode<BR>&nbsp;&nbsp; and give you the Lisp menu in the buffer's menu =
bar. You=20
can<BR>&nbsp;&nbsp; use commands from this menu to interact with the =
Lisp=20
window.<BR>&nbsp;&nbsp; The commands will work in all lisps=20
(clisp,acl,cmucl,sbcl).</FONT></DIV>
<DIV><FONT size=3D2>&nbsp; &nbsp;To automatically activate lisp-mode =
whenever you=20
edit<BR>&nbsp;&nbsp; any file related to cm and clm add the following=20
to<BR>&nbsp;&nbsp; your custom.el file:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp; (setq =
auto-mode-alist<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
(append '(("</FONT><A href=3D"file://\\.clm$"><FONT =
size=3D2>\\.clm$</FONT></A><FONT=20
size=3D2>"&nbsp; .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("</FONT><A=20
href=3D"file://\\.cm$"><FONT size=3D2>\\.cm$</FONT></A><FONT =
size=3D2>"&nbsp;&nbsp; .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
("</FONT><A href=3D"file://\\.cmn$"><FONT =
size=3D2>\\.cmn$</FONT></A><FONT=20
size=3D2>"&nbsp; .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;("</FONT><A href=3D"file://\\.ins$"><FONT =
size=3D2>\\.ins$</FONT></A><FONT=20
size=3D2>"&nbsp; .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;("</FONT><A href=3D"file://\\.cl$"><FONT =
size=3D2>\\.cl$</FONT></A><FONT=20
size=3D2>"&nbsp;&nbsp; .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
("</FONT><A href=3D"file://\\.lisp$"><FONT =
size=3D2>\\.lisp$</FONT></A><FONT=20
size=3D2>" .=20
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("</FONT><A=20
href=3D"file://\\.scm$"><FONT size=3D2>\\.scm$</FONT></A><FONT =
size=3D2>" .=20
lisp-mode)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
auto-mode-alist))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
</FONT></DIV>
<DIV><FONT size=3D2>I hope this helps!&nbsp;For what its worth =
I&nbsp;verified=20
these instructions&nbsp;on a windows machine I dont normally =
use</FONT></DIV>
<DIV><FONT size=3D2>so they should actually work for someone other than=20
me.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0015_01C21E80.7D6F79A0--