lang/cc: kill emacs-spawned rdm on quit #305

This commit is contained in:
Henrik Lissner 2017-12-26 19:35:55 -05:00
parent 649c9649c1
commit 10110ad9d2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -211,7 +211,9 @@ compilation database is present in the project.")
if (string-match-p "/rdm\\_>" cmd) if (string-match-p "/rdm\\_>" cmd)
return t)) return t))
(message "Starting rtags server") (message "Starting rtags server")
(rtags-start-process-unless-running))) (rtags-start-process-unless-running)
;; Emacs-spawned rdm should be temporary
(add-hook 'kill-emacs-hook #'rtags-cancel-process)))
(let ((bins (cl-remove-if-not #'executable-find '("rdm" "rc")))) (let ((bins (cl-remove-if-not #'executable-find '("rdm" "rc"))))
(if (/= (length bins) 2) (if (/= (length bins) 2)