[slime-devel] Character completion for cmucl

Raymond Toy toy.raymond at gmail.com
Fri Sep 17 03:58:03 UTC 2010


Here is support for character name completion for cmucl.  The attached
file can be placed at the end of swank-cmucl.lisp.  This code will go
into the next snapshot of cmucl, so the bulk of the code is
conditionalized on lisp::unicode-complete not existing.

Because the name space is so large, completion is done kind of
incrementally.  (If full completion were done, think of how many
completions there would be for #\CJK!)  The name is completed upto the
next "piece".  As you type more, more pieces are added.  The completions
might look a little weird, but they (usually) expand to the correct
value eventually.  (This is an artifact of how cmucl stores the
character names and the desire to do this incrementally.)

There's at least one bug:  #\ne shows NE as a completion, but that's not
a valid name.  But the completion also shows the valid continuations.

I hope this is useful to someone.

Ray

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: char-completion.lisp
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20100916/c718d45a/attachment.ksh>


More information about the slime-devel mailing list