#998: Tab-completion of filenames does not work in GHCi 6.6
------------------------------------+---------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:  judahj        
     Type:  bug                     |         Status:  new           
 Priority:  low                     |      Milestone:  6.8           
Component:  GHCi                    |        Version:  6.6           
 Severity:  minor                   |     Resolution:                
 Keywords:                          |     Difficulty:  Unknown       
 Testcase:                          |   Architecture:  x86_64 (amd64)
       Os:  Linux                   |  
------------------------------------+---------------------------------------
Changes (by judahj):

  * milestone:  6.6.1 => 6.8

Comment:

 This is the problem: Since ghci
 now expands Haskell names, it tells readline that several extra
 symbols (such as '+', '-' or '/') are word boundaries; thus tabbing
 after "foo+len" expands "len" to "length".  However, tabbing after ":l
 folder/file" tries to expand just "file" instead of the full path
 "folder/file", since readline now thinks that "/" is a word boundary.

 As a workaround, you can add the following 3 lines to your .ghci file,
 removing '/' from the list of word boundaries:
 {{{
 :m +System.Console.Readline Data.List
 getCompleterWordBreakCharacters >>= setCompleterWordBreakCharacters .
 delete '/'
 :m -System.Console.Readline Data.List
 }}}

 The fix is for ghci to use rl_completion_word_break_hook from the
 readline library, which lets it change the set of word break
 characters based on the context of the line.  However, that hook isn't
 currently exported
 from System.Console.Readline, so this would also require a patch to
 the readline package.  Thus, I'm punting the fix to 6.8; we can use the
 above workaround in the meantime.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/998>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to