Author: bugman Date: Thu Jul 3 08:54:26 2014 New Revision: 24421 URL: http://svn.gna.org/viewcvs/relax?rev=24421&view=rev Log: Better tab completion support in the prompt UI for Mac OS X users. For some Python versions, the Mac supplied libedit library is used rather than GNU readline. But this library uses a completely different language and hence tab completion was non-functional on these systems. The library difference is now detected and the correct language sent into libedit to activate tab completion. Modified: trunk/prompt/interpreter.py Modified: trunk/prompt/interpreter.py URL: http://svn.gna.org/viewcvs/relax/trunk/prompt/interpreter.py?rev=24421&r1=24420&r2=24421&view=diff ============================================================================== --- trunk/prompt/interpreter.py (original) +++ trunk/prompt/interpreter.py Thu Jul 3 08:54:26 2014 @@ -264,7 +264,10 @@ if dep_check.readline_module: readline.set_completer(Tab_completion(name_space=locals()).finish) readline.set_completer_delims(' \t\n`~!@#$%^&*()=+{}\\|;:",<>/?') - readline.parse_and_bind("tab: complete") + if 'libedit' in readline.__doc__: + readline.parse_and_bind("bind ^I rl_complete") + else: + readline.parse_and_bind("tab: complete") # Execute the script file if given. if script_file and not status.prompt: