GUI version GNU Emacs (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64.

Company, using the latest version of Company from MELPA

Windows 7 x64 bit.


Propably I'm missing something. I couldn't figure it out with Google. After reorganizing my .emacs.d, I noticed I don't get any completion from buffers.

For example, I'm typing in the buffer foobarsentence.

And then start a new line below that, and typing fooba, I expected to get company completion suggestion that shows foobarsentecene, and I just need to press tab or RET.

But I see nothing. I couldn't find any company backend that's responsible for words-in-buffer completion. Anyone knows which company backend I mean?

  • If the problem occurred after you reorganized your init file, you should probably consult your old version to see what you may have missed when reorganizing.
    – Dan
    Commented Aug 31, 2015 at 19:48
  • I already thought of that. I moved things here and there, that I couldn't find it back. But thanks for the suggestion.
    – ReneFroger
    Commented Sep 1, 2015 at 20:06
  • It's not a company backend, but you can get this behavior easily by turning on HippieExpand mode and integrating it with Company by adding company-complete to hippie-expand-try-functions-list. Commented Sep 8, 2015 at 21:28
  • @dodgethesteamroller thanks for your tip! It's appreciated.
    – ReneFroger
    Commented Sep 9, 2015 at 19:57

1 Answer 1


That is company-dabbrev, named after the dabbrev command bound to M-/.

  • It is working with M-/, but not what I meant it. I added it to the list: (add-to-list 'company-backends 'company-dabbrev t), which is not working as given in the example above. When I'm typing something, I get a popup with the completion suggestions. The completions from company-dabbrev are missing. So I guess I miss some spot here?
    – ReneFroger
    Commented Aug 30, 2015 at 20:24
  • There's also company-dabbrev-code for things outside comments and strings, maybe that's what you're after.
    – wasamasa
    Commented Aug 30, 2015 at 21:04
  • No, company-dabbrev works fine, but the issue is that I would get that into the completion popup window. Any suggestion, in order to achieve that?
    – ReneFroger
    Commented Sep 1, 2015 at 10:13
  • Why are you marking this answer as accepted, then open a new question that's essentially the same?
    – wasamasa
    Commented Sep 1, 2015 at 20:52
  • Because your answer targets the company backend that's responsible for complete the words that are currently in the buffer. The another question targets how feed the popup completion from a backend.
    – ReneFroger
    Commented Sep 1, 2015 at 21:48

Your Answer

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

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