Hi,<br><br>Is there an automated way in clbuild to launch a swank server without starting Emacs too?<br><br>Sometimes, I find the need to launch a swank server and then slime-connect to it from an existing (perhaps remote) Emacs process.<br>
<br>I have resorted variously to invoking SWANK:CREATE-SERVER manually from a `clbuild lisp' REPL, or scripting a similar `clbuild run ...' incantation. Lately, I have been using a patched[1] clbuild that does it automatically with `clbuild swank [port]'.<br>
<br>Is a better way to do this? Or is something like the patch below worth adding to clbuild?<br><br>Thanks<br><br><br>[1] $ darcs diff<br>diff -rN old-clbuild/clbuild new-clbuild/clbuild<br>1897a1898,1913<br>> swank)<br>
> shift<br>> swank_coding_system="utf-8-unix"<br>> swank_port=${1:-0}<br>> test $# -ge 1 && shift<br>> swank_options=":port $swank_port :coding-system \"$swank_coding_system\""<br>
> swank_create_server="(swank:create-server $swank_options)"<br>> swank_asdf_load="(asdf:operate 'asdf:load-op :swank)"<br>> if test -f "$BASE"/monster.core; then<br>
> common_options="$core_option "$BASE"/monster.core $common_options"<br>> swank_asdf_load="nil"<br>> fi<br>> clbuild_lisp "$@" \<br>> $eval "$swank_asdf_load" \<br>
> $eval "$swank_create_server"<br>> ;;<br clear="all"><br><br>-- <br>Abhishek Reddy<br><a href="http://abhishek.geek.nz">http://abhishek.geek.nz</a><br><br>