Re: Readline completion example?

Sam Steingold <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <m1lgsyxb6v.fsf@clr-sds>
> * Pascal Bourguignon <[email protected]> [2017-02-18 23:35:27 +0100]:
>
> It looks like rl_completion_entry_function is not mentionned in
> clisp/modules/readline/readline.lisp and that no variable
> readline:completion-entry-function is present in the readline package.
>
> Indeed, I don’t see how to specify the completions with the API defined
> in readline.lisp Perhaps it correspond to an older readline library
> version that didn’t have it? Perhaps the mechanism is preempted by
> clisp, since we can see that in the terminal, clisp has completion on
> the the symbol names (operators, variables), and shows the documentation
> of the operator when they are complete.

exporting this functionality would interfere with the normal clisp repl.
if the user would set readline:completion-entry-function, there
would be no way to reset it back to factory settings.


> It would be nice to provide a patch to this sys::completion with a hook
> so that applications may provide their own completions. (I would make it
> a per-stream hook).

good idea!
http://www.cygwin.com/acronyms/#PTC

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net
http://iris.org.il http://mideasttruth.com http://thereligionofpeace.com
C combines the power of assembler with the portability of assembler.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.