Auto-complete is also hosted on github: http://github.com/m2ym/auto-complete. It conveniently shows a popup when completion is available.
Currently I'm using http://madscientist.jp/~ikegami/diary/20090215.html, which while usable, is a unextensible hack.
I guess it's not difficult.
I have used auto-complete once about one year ago. According to my blog, I momorized: 1) max number of candidate is 10. I don't know what key I should type in the next if the number of candidates are over 10. 2) If a menu is displayed in the bottom of window, the buffer is automatically scrolled.
Due to these two problems, I quit using it. Are they fixed already?
I just tested and I believe both issues have been fixed.
Auto-complete now also supports "dictionaries", which is basically a text file listing all the candidates. I haven't tested it yet, but I think simply taking the output of ghc-mod list would work.
OK. One more favor. Please look at my program in:
This makes a completion buffer as a menu.
Which do you prefer, this or auto-complete?
I cannot understand Japanese, but I do prefer auto-complete as a general solution to completion.
Sorry but just copy the program into your .emacs. And try complete anything. When a complete buffer is displayed, type C-xo to go to the buffer. You can walk by C-n, C-f, C-p, C-b and select the current candidate by RET. I think this is also a general solution.
How do I activate completion? M-x my-choose-completion always says "No completion here". I like auto-complete because everything is done automatically: you don't need to do anything to trigger completion, and the candidates are shown in a popup rather than in another buffer.
Nothing. I'm taking about any completion of your Emacs life. This program makes the Completes buffer, which is a basic functionality of Emacs, better. Anyway, I will try auto-complete when I get a time.
Just so you know, I took the output of ghc-mod list and inserted it as an auto-complete dictionary. Works fine.
On a second thought, after looking at your ghc-comp.el, I think your approach has some context sensitivity. I'm not sure if auto-complete could achieve that.
auto-complete have "ac-source-ghc-mod" you can close this issue.