Giter Club home page Giter Club logo

Comments (7)

inter1965 avatar inter1965 commented on May 17, 2024

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.

pasja avatar pasja commented on May 17, 2024

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.

inter1965 avatar inter1965 commented on May 17, 2024

Please give a try via disabling the dictionary.

from auto-complete.

binshengliu avatar binshengliu commented on May 17, 2024

That works for me.

I don't know why it hasn't been fixed in the upstream.

from auto-complete.

jsyjr avatar jsyjr commented on May 17, 2024

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.

binshengliu avatar binshengliu commented on May 17, 2024

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.

monsanto avatar monsanto commented on May 17, 2024

Was this ever fixed?

from auto-complete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.