[Openmcl-devel] enhancement for ccl/ccl64 startup scripts - under comint mode in emacs

Jason E. Aten j.e.aten at gmail.com
Sun Mar 20 20:52:57 PDT 2011


Thanks to everyone for their help, especially Gary. I appreciate the care
and high quality dialogue here.  I am starting to grok "intermediate level"
Common Lisp, but it's certainly challenging!

As a token of my appreciation, I'm attaching a small enhancement to the ccl
and ccl64 startup scripts which let's them function correctly when run under
comint mode in emacs.  I got frustrated with slime a while back, and put
together my own comint mode for editing lisp which is better (smaller,
faster, easier to tweak), in my humble opinion.  If anyone would like to try
it out, feel free to email me off list.

Best,
Jason


# ~/pkg/ccl-trunk/ccl/scripts$ svn diff
Index: ccl
===================================================================
--- ccl (revision 14684)
+++ ccl (working copy)
@@ -47,3 +47,14 @@
 export CCL_DEFAULT_DIRECTORY
 exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"

+# Add a test for no args, and exec differently in that
+# case.  Especially when running under comint mode in emacs, this
+# avoids trying to start a process whose name ends in
+# a space, which cryptically fails without explanation.
+#
+if test -z "$@"
+then
+  exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL}
+else
+  exec "${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL}" "$@"
+fi
Index: ccl64
===================================================================
--- ccl64 (revision 14684)
+++ ccl64 (working copy)
@@ -78,5 +78,15 @@
 fi

 export CCL_DEFAULT_DIRECTORY
-exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"

+# Add a test for no args, and exec differently in that
+# case.  Especially when running under comint mode in emacs, this
+# avoids trying to start a process whose name ends in
+# a space, which cryptically fails without explanation.
+#
+if test -z "$@"
+then
+  exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL}
+else
+  exec "${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL}" "$@"
+fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20110320/39b45cd4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccl64-startup-script-enhacned.tar.bz2
Type: application/x-bzip2
Size: 1546 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20110320/39b45cd4/attachment.bin>


More information about the Openmcl-devel mailing list