This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [bug] readline completion



> >  I guess it's not seeing the #\> as being of symbol syntax.
> 
> You're right.  Unfortunately, this is a limitation of readline.  When
> readline calls the user callback, it provides information about what's
> going to be completed.  Undortunately, there doesn't seem to be a way
> to control what it considers a word, so one would need to convince it
> that ">" is sometimes part of a word.

Are you sure?  GDB does all kinds of funky completion using
readline...

> There is a global variable which, when the callback is being called,
> stores the line so far; one might be able to do something clever
> here.  But it would be complicated.

Really?  It seems like (my R4RS is still packed, *SHAME*) you'd just
have to scan backwards from the current cursor position while the
characters were valid symbol constituents, and then complete on that
substring.