Emacs 24.5.2 from the official stable nixpkgs channel
company 20160429.1339 from MELPA
company-lua 20160330.313 from MELPA
Steps to reproduce
Don't have lua interpreter installed on your system :) (well, at least (executable-find "lua") should return nil for your currently running instance of Emacs)
Have company and company-lua configured like that: company-rc.el
Start Emacs
M-x find-file RET ~/khooy.lua RET
M-x company-complete RET
C-x C-c
Observed
Emacs says that there are active processes. And one of them is the lua process.
Expected
IMO Emacs should quit clearly.
Commentary
Well, I think I actually know why this happens. This is because when the user doesn't have the lua interpreter we put nil as the PROGRAM argument of the start-process function at company-lua.el#L83. And the docs say:
PROGRAM is the program file name. It is searched for in exec-path (which see). If nil, just associate a pty with the buffer. Remaining arguments are strings to give program as arguments.
This is probably what happens in our case. The question is what do we have to do when the lua interpreter is missing? Just silently do nothing or say "Hey! You don't have lua. Please install it to autocomplete things" somewhere in the *Messages*? I'd like to go with the second option. :)
System Information
Steps to reproduce
(executable-find "lua")
should returnnil
for your currently running instance of Emacs)company
andcompany-lua
configured like that: company-rc.elM-x find-file RET ~/khooy.lua RET
M-x company-complete RET
C-x C-c
Observed
Emacs says that there are active processes. And one of them is the lua process.
Expected
IMO Emacs should quit clearly.
Commentary
Well, I think I actually know why this happens. This is because when the user doesn't have the lua interpreter we put
nil
as thePROGRAM
argument of thestart-process
function at company-lua.el#L83. And the docs say:This is probably what happens in our case. The question is what do we have to do when the lua interpreter is missing? Just silently do nothing or say "Hey! You don't have lua. Please install it to autocomplete things" somewhere in the
*Messages*
? I'd like to go with the second option. :)