abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
383 stars 46 forks source link

Fix parsing with buffer-focus condition after starting server #383

Closed ptrv closed 7 years ago

ptrv commented 7 years ago

When using buffer-focus as parse condition instead of mode-enabled the first opened ycmd-mode buffer that starts the server doesn't get parsed by ycmd--on-unparsed-buffer-focus because the status is stopped until the server is up and running.

Add new ycmd status when server is starting and use status in ycmd--on-window-configuration-change for buffer-focus condition. Add only one hook to window-configuration-change-hook and perform deferred parse in ycmd--on-window-configuration-change.