1

When writing python code in Emacs (GNU Emacs 25.1.1 x86_64-pc-linux-gnu), I use company for auto completion. Why does company autocomplete (some) numbers to keywords?

Autocomplete 1000 to and

Edit: I used M-x company-diag and it tells me:

Emacs 25.1.1 (x86_64-pc-linux-gnu) of 2017-09-15 on trouble
Company 0.9.4

company-backends: (elpy-company-backend elpy-company-backend elpy-company-backend company-bbdb company-nxml company-css company-eclim company-clang         company-xcode company-cmake company-files (company-dabbrev-code company-gtags company-etags company-keywords)
                  company-oddmuse company-dabbrev)

Used backend: elpy-company-backend
Major mode: python-mode
Prefix: #("1000" 0 4
  (fontified t))

Completions:
  "and" "keyword"
  "if" "keyword"
  "in" "keyword"
  "is" "keyword"
  "not" "keyword"
  "or" "keyword"

This looks rather odd to me. I can't imagine that this is a feature of elpy-company-backend...?

2

1 Answer 1

3

This is an old bug. It has been resolved with this patch: https://github.com/jorgenschaefer/elpy/pull/1279

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.