Comments (7)
This is caused by the automatic added trailing blank line in the dictionary file, and it filters out the zero length input. The solution is provided by the following patch, i hope this would be fixed in the upstream soon.
--- auto-complete.el 2011-04-18 12:49:09.779405553 +0800
+++ auto-complete.el 2011-04-18 12:49:21.719423083 +0800
@@ -596,7 +596,7 @@ If there is no common part, this will be
(ignore-errors
(with-temp-buffer
(insert-file-contents filename)
-
(setq result (split-string (buffer-string) "\n"))))
-
(setq result (split-string (buffer-string) "\n" t)))) (puthash filename result ac-file-dictionary) result))))
from auto-complete.
I still have this problem, after applying your patch. It's really annoying, and limit the usefulness of auto-complete and perl-completion http://www.emacswiki.org/emacs/PerlCompletion
I have "\n" instead of "n" in auto-complete.el. I tried to change them but it didn't help.
I use the latest git version with el-get.
from auto-complete.
Please give a try via disabling the dictionary.
from auto-complete.
That works for me.
I don't know why it hasn't been fixed in the upstream.
from auto-complete.
After reading the documentation for split-string a clearer fix is to remove the "\n" argument. That works for me and does not require disabling the dictionary.
from auto-complete.
According to the user manual 5.6.1. User Defined Dictionary, words are separated with newline.
If you remove "\n" to fix the problem, the dictionary words can't contain any spaces(default to "[ \f\t\n\r\v]+"). For example, "Auto Complete" will be separated to "Auto" and "Complete". So I don't think remove "\n" is the appropriate way to fix it.
from auto-complete.
Was this ever fixed?
from auto-complete.
Related Issues (20)
- Most recent auto-complete semantic source doesn't work HOT 2
- Weird completion behaviour when editing a line with existing characters to the right of the cursor
- Display problem with autocomplete in emacs (python) HOT 4
- how can i use tab instead of tab+<CR>
- Add page up/down commands HOT 3
- Is there any way to add word databases which should also be looked for a match ? HOT 1
- Why people are turning away from this package? HOT 16
- (Solved)No such file or directory, auto-complete
- Memberships after transferring ownership HOT 2
- Error running timer ‘ac-update-greedy’ / Error running timer ‘ac-show-menu’ HOT 2
- Looking for a new maintainer HOT 42
- Error running timer, ‘ac-show-menu’ & ‘ac-update-greedy’: (beginning-of-buffer) HOT 2
- Disable reviewer requirement? HOT 2
- Mind changing the organization's logo? HOT 7
- auto-complete does not respect "completion-styles" HOT 2
- Move CI to GitHub Actions HOT 1
- Warnings with Emacs 28.2 HOT 3
- Crash with emacs 29.1: "Error: Symbol’s value as variable is void: macro-declaration-function" HOT 4
- Doesn't work with latest Emacs
- Emacs exit is slow when auto-complete-mode is enabled HOT 5
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 auto-complete.