From: Pierre Baillet Date: 2002-10-31T23:02:22+09:00 Subject: Readline Module and completion_proc Dear rubyists, I've been playing with the Readline module for the last hours and i'd like to make a few suggestions: In the documenation from current CVS[1], it says that completion proc is a Proc object that should take a string as input parameter. In fact and contrary to what I thought would be more logical, this object only receives the last "part of word" typed by the user ie if I type "cd pro" and then press , i receive "pro" but not the "cd " string before. As this is used to guess what completion we should offer to the user, I thought it would be better for the Proc object to also receive this part of the input (if I know my user is going to cd to somewhere, I can complete only on matching folders for example). so completion_proc would be Readline.complretion_proc = Proc.new{ |last_word, beginning| ... } with last_word being "pro" and beginning "cd " in my example. Maybe this mail should have been directed to ruby-core. It's not clear yet in my mind what belongs to -talk and what belongs to -core. Let me know if this is some kind of possible enhancement My ruby is: % ruby -v ruby 1.6.7 (2002-03-19) [i386-linux] 1:http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/readline/README?rev=1.1.1.1.6.1&content-type=text/x-cvsweb-markup&only_with_tag=ruby_1_6 Cheers, -- Pierre Baillet Linux is user friendly. Linux is not idiot friendly If you don't understand that, use Windows