bug#37086: Guile Ice-9 Readline with-readline-completion-function

2019-08-20 Thread Matthew Henry
Ah gotcha. Thanks! On Mon, Aug 19, 2019 at 11:01 PM Mark H Weaver wrote: > tags 37086 + notabug > close 37086 > thanks > > Hi Matthew, > > Matthew Henry writes: > > > Seen in: guile (GNU Guile) 2.2.4 > > > > When using the with-readline-completion-function, the passed readline > > uses the def

bug#37086: Guile Ice-9 Readline with-readline-completion-function

2019-08-19 Thread Mark H Weaver
tags 37086 + notabug close 37086 thanks Hi Matthew, Matthew Henry writes: > Seen in: guile (GNU Guile) 2.2.4 > > When using the with-readline-completion-function, the passed readline > uses the default (apropos) completion function instead of the one > provided to with-readline-completion-funct

bug#37086: Guile Ice-9 Readline with-readline-completion-function

2019-08-19 Thread Matthew Henry
I'm early in my Scheme journey, but here's a suggested fix: (define-syntax-rule (with-readline-completion-function completer expr ...) "With @var{completer} as readline completion function, call @var{expr ...}." (let ((old-completer *readline-completion-function*)) (dynamic-wind (lam

bug#37086: Guile Ice-9 Readline with-readline-completion-function

2019-08-19 Thread Matthew Henry
Seen in: guile (GNU Guile) 2.2.4 When using the with-readline-completion-function, the passed readline uses the default (apropos) completion function instead of the one provided to with-readline-completion-function. I believe that this is because root/guile-readline/ice-9/readline.scm has defined