From: noreply@... Date: 2006-08-29T12:55:44+09:00 Subject: [ ruby-Patches-5555 ] Readline.completion_with_context_proc = returns current text and full line Patches item #5555, was opened at 2006-08-29 03:55 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5555&group_id=426 Category: Ruby1.8 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Eero Saynatkari (esaynatkari) Assigned to: Nobody (None) Summary: Readline.completion_with_context_proc = returns current text and full line Initial Comment: Currently the completion_proc given to Readline gets one parameter only, the 'current word' being completed. On occasion, it is useful to be able to see the entire line of input. Currently the only workaround is to hack basic_word_break_characters to something non- printable. The patch provides two new methods: Readline.completion_with_context_proc= Readline.completion_with_context_proc This patch is backwards-compatibile while providing new functionality. Usage is identical to current. Usage example: require 'readline' Readline.completion_with_context_proc = lambda {|word, line| # ...} ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5555&group_id=426