Mon Feb 18 15:43:18 PST 2008  [EMAIL PROTECTED]
  * In expressions, tab-complete quoted strings as filenames.

    M ./compiler/ghci/InteractiveUI.hs +1

Mon Feb 18 15:42:02 PST 2008  [EMAIL PROTECTED]
  * Make tab completion use a common set of word break characters.

    M ./compiler/ghci/GhciMonad.hs -1 +1
    M ./compiler/ghci/InteractiveUI.hs -114 +65


There's been several requests for tab-completion to handle the
following two cases differently:

Prelude> readFi<TAB>   (expand function name)
Prelude> readFile "/Users/judah/Docu<TAB>   (expand filename)

I had been trying but was unable to integrate this behavior with the
existing hackery around using different sets of characters for word
breaks in different commands.  Even using the readline-5-only
setCompletionWordBreakHook didn't quite work.  So today I gave up, and
rewrote it so that all commands use the same characters for word
breaks.

Pros: Solves the above problem, and we end up with cleaner code.
Con: Tab-completion will treat a Haskell expression like "num/denom"
as one word, not two.  However, since the user can work around it by
adding a space after the slash, I think this is pretty minor.

Thoughts?  Simon M, you've looked at this before; what do you think?

-Judah

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to