ac-ispell icon indicating copy to clipboard operation
ac-ispell copied to clipboard

Too slow for use when used with Flyspell

Open WorldsEndless opened this issue 10 years ago • 6 comments

I have AC-Ispell running and working alongside flyspell on one of my orgmode journal buffers; but to actually get a suggestion, I have to wait about 2 seconds for anything to happen. I'm using the hunspell dictionary file for both Flyspell and AC-Ispell; apparently, this is not to be recommended. Any suggestions on how to have them both working simulteaneously?

WorldsEndless avatar Feb 09 '15 11:02 WorldsEndless

Would you tell me how to reproduce this issue ?

  • Minimum configuration for reproducing this issue
  • please show( or upload) me sample file(.org ) etc

syohex avatar Feb 09 '15 14:02 syohex

Download the files (dictionary, brief org file, brief setup file, autocomplete dirs) here: http://toryanderson.com/files/ispell-ac-error.zip Eval the .el file, then open the .org file. I would start a word, "narra" and wait for almost 5 seconds before popups appeared.

WorldsEndless avatar Feb 09 '15 15:02 WorldsEndless

Thanks, I'll check

syohex avatar Feb 10 '15 02:02 syohex

Hmm, it does not take more than 3 seconds...

ac-ispell-test

What am I doing wrong ?

syohex avatar Feb 13 '15 06:02 syohex

I've encountered this problem as well with flyspell and auto-complete. Basically the completion menu (with the completion choices) takes a lot longer (a few seconds) to appear when flyspell is activated along with auto-complete (independent of ac-ispell). This is my auto-complete config:

(require 'auto-complete-config)
(ac-config-default)
(setq ac-auto-show-menu 0.1)

To reproduce, use the above configuration for auto-complete in an Emacs-lisp buffer and type "(li" and wait for the auto-completion menu to appear (it's nearly instantaneous with flyspell disabled but takes a few seconds with flyspell enabled).

preetpalS avatar Dec 15 '17 17:12 preetpalS

Actually, nevermind. The solution is to add the following line of code to your auto-complete configuration.

(ac-flyspell-workaround)

See: https://github.com/auto-complete/auto-complete/issues/231#issuecomment-33179667

@WorldsEndless You might want to try that workaround and see if you still have that issue.

preetpalS avatar Dec 15 '17 18:12 preetpalS