How hard is it to integrate with the auto-complete engine? #1

Closed
wh5a opened this Issue Mar 12, 2010 · 10 comments

3 participants

@wh5a

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.

@kazu-yamamoto
Collaborator

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?

@wh5a

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.

@kazu-yamamoto
Collaborator

OK. One more favor. Please look at my program in:
http://d.hatena.ne.jp/kazu-yamamoto/20081117/1226909425
This makes a completion buffer as a menu.
Which do you prefer, this or auto-complete?

@wh5a

I cannot understand Japanese, but I do prefer auto-complete as a general solution to completion.

@kazu-yamamoto
Collaborator

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.

@wh5a

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.

@kazu-yamamoto
Collaborator

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.

@wh5a

Just so you know, I took the output of ghc-mod list and inserted it as an auto-complete dictionary. Works fine.

@wh5a

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.

@selman

auto-complete have "ac-source-ghc-mod" you can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment