Comments (3)
This patch seems to fix it:
--- a/auto-complete-clang-async.el
+++ b/auto-complete-clang-async.el
@@ -270,7 +270,15 @@ This variable will typically contain include paths, e.g., (\"-I~/MyProject\" \"-
(setq candidates (nreverse candidates))
(setq ac-clang-template-candidates candidates)
(setq ac-clang-template-start-point (point))
- (ac-complete-clang-template)
+
+ (if (cdr candidates)
+ (ac-complete-clang-template)
+ ;; If there is only one candidate, auto-complete will expand it in
+ ;; ac-expand-common, and then will not perform the completion
+ ;; action, so our template will not be expanded. Work around this
+ ;; by faking completion, and going straight to the template action.
+ (progn (setq ac-last-completion (cons (point-marker) (car candidates)))
+ (ac-clang-template-action)))
(unless (cdr candidates) ;; unless length > 1
(message (replace-regexp-in-string "\n" " ; " help))))
from emacs-clang-complete-async.
I haven't seen this problem on my site (with a few tries on the latest code), maybe I need to switch to a cutting edge version of auto-complete to reproduce this problem.
from emacs-clang-complete-async.
Hmm, I can no longer reproduce this either, even when rolling back to the revision of emacs-clang-complete-async I mentioned when I opened the issue.
This problem must have been due to some misconfiguration on my part, which I accidentally fixed while developing this patch.
Apologies for the noise. :(
from emacs-clang-complete-async.
Related Issues (20)
- Normal auto completion features doesn't work properly with auto-complete-clang
- Auto-completion is not working HOT 3
- llvm 3.4 compatibility HOT 2
- Query multiple interfaces of a function and provide selection
- Mac OS X w/ Xcode 5.1.1: error: unknown type name 'FILE' HOT 2
- 补全Qt库总会出现这种形式"func:func()"
- C++11 support HOT 2
- Why (setq ac-sources '(ac-source-clang-async)) ? HOT 1
- Failed to compile on ArchLinux HOT 3
- make error on os x HOT 1
- The current version not work for Qt completions HOT 1
- Fail to complete when using template parameters in the definitions of template classes or functions HOT 1
- appending to ac-clang-cflags by project specific .dir-locals.el HOT 5
- auto complete clang async conflicts with builtin sources HOT 2
- make error on archlinux HOT 1
- What is the license?
- Failed to compile on Ubuntu14.10 HOT 1
- How to install emacs-clang-complete-async using elpa?
- Cannot complete container and smart pointer with '-std=c++11' flag
- Cannot open load file, no such file or directory, auto-complete-clang-async HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-clang-complete-async.