Re: Readline completion example?
Jean Louis <[email protected]> Wed, 15 Nov 2017 18:39:51 +0300
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 15, 2017 at 03:17:25PM +0000, [email protected] wrote: > Jean Louis wrote: > >I have just tried this one: > >(setf custom:*completion* (make-completion '("one word" "one few" "two more" "two here"))) > >So after "one " (with space) nothing is completing thereafter. > > Umlauts may allow other interesting test cases: äöüß, éàùô etc. (to see whether all encodings used between the Lisp and the readline library are correctly set). > > I only recently understood that on MacOSX, due to the UTF-8 NFD representation, you have to type e + TAB to expand something with é, è or ê in a file name in the shell! I guess it is so, yet I did not try it out. I would solve umlauts and slavic characters easily, I do not have many in the database. I am expanding something like: Suppliers of belts :: 1234 Suppliers of gold :: 1235 And then I am parsing the last number to get the proper choice, as some company names can be same, so I need to choose the proper ID of the choice. In that sense I can change umlatus to ae, oe, ue, ss before the completion. Jean ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list