unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Company - idle completion not working
@ 2014-04-18 13:12 Thorsten Jolitz
  2014-04-18 13:53 ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-18 13:12 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

I just discovered company-mode, and it basically works with this in my
init.el:

,-------------------------------------------------------
| (when (try-require 'company)
|   (add-hook 'after-init-hook 'global-company-mode)
|   (setq company-begin-commands '(self-insert-command))
|   (setq company-idle-delay 0.5)
|   (setq company-minimum-prefix-length 3)) 
`-------------------------------------------------------

but not the idle completion. If I type 

,-------
| (mess*
`-------

[with point at *]

in an emacs-lisp-mode buffer and wait, nothing happens. Doing M-x
company-complete shows 'message' as obvious completion. Did I forget
about some basic settings to make idle comletion work?

PS

#+begin_src emacs-lisp
(emacs-version)
#+end_src

#+results:
: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
:  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Company - idle completion not working
  2014-04-18 13:12 Company - idle completion not working Thorsten Jolitz
@ 2014-04-18 13:53 ` Dmitry Gutov
  2014-04-18 16:00   ` Thorsten Jolitz
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2014-04-18 13:53 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: help-gnu-emacs

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I just discovered company-mode, and it basically works with this in my
> init.el:
>
> ,-------------------------------------------------------
> | (when (try-require 'company)
> |   (add-hook 'after-init-hook 'global-company-mode)
> |   (setq company-begin-commands '(self-insert-command))

If you're typing the text you mentioned in an org-mode buffer, the above
line is likely the problem.

See https://github.com/company-mode/company-mode/issues/91, for example.

Next time, please search the issues first.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Company - idle completion not working
  2014-04-18 13:53 ` Dmitry Gutov
@ 2014-04-18 16:00   ` Thorsten Jolitz
  2014-04-18 16:29     ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-18 16:00 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov <dgutov@yandex.ru> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> I just discovered company-mode, and it basically works with this in my
>> init.el:
>>
>> ,-------------------------------------------------------
>> | (when (try-require 'company)
>> |   (add-hook 'after-init-hook 'global-company-mode)
>> |   (setq company-begin-commands '(self-insert-command))
>
> If you're typing the text you mentioned in an org-mode buffer, the above
> line is likely the problem.
>
> See https://github.com/company-mode/company-mode/issues/91, for example.

The funny thing is that it actually works in Org-mode but not in
emacs-lisp-mode or the scratch buffer.

> Next time, please search the issues first.

Have to read more about company, just discovered it and was a bit
disappointed that it did nothing when I tried it with emacs lisp.

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Company - idle completion not working
  2014-04-18 16:00   ` Thorsten Jolitz
@ 2014-04-18 16:29     ` Dmitry Gutov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2014-04-18 16:29 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: help-gnu-emacs

Thorsten Jolitz <tjolitz@gmail.com> writes:

>>> | (when (try-require 'company)
>>> |   (add-hook 'after-init-hook 'global-company-mode)
>>> |   (setq company-begin-commands '(self-insert-command))
>>
>> If you're typing the text you mentioned in an org-mode buffer, the above
>> line is likely the problem.
>>
>> See https://github.com/company-mode/company-mode/issues/91, for example.
>
> The funny thing is that it actually works in Org-mode but not in

That sounds implausible: the reverse was true for the reporter of the
bug linked above, org-mode rebinds `self-insert-command' to
`org-self-insert-command', `company-begin-commands' is consulted when
deciding whether to initiate idle completion.

> emacs-lisp-mode or the scratch buffer.

Works for me. Please file a proper bug report, with a recipe starting
with `emacs -Q'.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-18 16:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 13:12 Company - idle completion not working Thorsten Jolitz
2014-04-18 13:53 ` Dmitry Gutov
2014-04-18 16:00   ` Thorsten Jolitz
2014-04-18 16:29     ` Dmitry Gutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).