this post was submitted on 23 Oct 2023
1 points (100.0% liked)

Lisp

53 readers
3 users here now

founded 1 year ago
MODERATORS
 

Hi y'all,

I'm experimenting with Readline config (generating completions, setting up keybindings, etc.) for CL REPLs. It's working, with a single exception: completions are split over hyphens, e.g. typing mak, I get make and makunboud as the only completions. Even though there're make-array and make-instance in the completions file. Anyone knows how to allow completing mak to make-array, make-instance and other hyphenated words? Any other gotchas for Lisp-specific Readline setup?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] dzecniv@alien.top 1 points 1 year ago (1 children)

I think -b '()' is enough (word delimiters are parens) but this is more complete:

--break-chars "(){}[],'#\";|\\" 

At that point you might want to try cl-repl?

A summary of options: https://gist.github.com/vindarel/2309154f4e751be389fa99239764c363 Like, use --remember to tab-complete what was previously defined.

[โ€“] aartaka@alien.top 1 points 1 year ago

Right, thanks for the gist!

I'm not yet using cl-repl because I want to have distinct tools composed to a usable whole or at least try to do that before surrendering to complete setups like cl-repl. But thanks for the recommendation anyway!