yasuyk / ac-helm Goto Github PK
View Code? Open in Web Editor NEWHelm interface for auto-complete
Helm interface for auto-complete
I cannot use ac-complete-with-helm
the first time because of this error:
helm-show-completion: Wrong type argument: overlayp, nil [5 times]
I had to run auto-complete
first to "activate" ac-helm
. After executing initial auto-complete, calling ac-complete-with-helm
produces no more errors. But I had to execute auto-complete
first.
Currently, to popup ac-helm, ac-complete must be executed first to get a list of completion. Is there a way to directly use ac-helm?
If ac-complete-clang
is available and the current mode is C/C++, ac-helm
should call ac-complete-clang
immediately, like this:
(defun my-ac-complete-with-helm ()
(interactive)
(call-interactively 'ac-complete-with-helm)
(call-interactively 'ac-complete-clang)
)
It should use ac-complete-clang
because ac-complete-clang
also inserts function's arguments and allow user to change.
This issue happened in previous version of Helm: emacs-helm/helm#402 , but it got fixed now. However, ac-helm
(as well as helm-flycheck
) still has this issue.
Currently, helm-M-x
does not has this issue. I also tested helm-swoop
, and it does not have this issue after the original issue got fixed. So, I think the way ac-helm
uses helm interface can be updated.
For example, if I got a completed symbol:
(global-set-k|ey) ;; | is the cursor
Execute ac-complete-with-helm
, the symbol is completed again:
(global-set-key|ey) ;; unnecessary "ey" is inserted
The current stable version specifies helm-20130328 as a requirement
For example, in Makefile, when ac-complete-with-helm
is bound to TAB, it should fall back to TAB's original function of that major mode when it has nothing to complete. Indeed, this behaviour should happen with any key that is bound to ac-complete-with-helm
.
When there's one candiate, ac-helm
does complete the candidate. However, ac-helm
still pops a candidate buffer with nothing in it.
When I tried to define-key
(define-key java )
I tried ac-complete-with-helm
after the java
keyword, but it produced the following error:
if: Symbol's function definition is void: yas/current-snippet-table
I think yas/current-snippet-table
should be exclude from the list of candidates, since I am trying to completing a symbol, not to insert a template.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.