Merge pull request #348 from UndeadKernel/rtags-fix
Correctly report when rtags's client or server are not found.
This commit is contained in:
commit
2bfb4accf2
1 changed files with 3 additions and 3 deletions
|
@ -206,9 +206,9 @@ compilation database is present in the project.")
|
||||||
;; ...and don't auto-jump to first match before making a selection.
|
;; ...and don't auto-jump to first match before making a selection.
|
||||||
rtags-jump-to-first-match nil)
|
rtags-jump-to-first-match nil)
|
||||||
|
|
||||||
(let ((bins (cl-remove-if-not #'executable-find '("rdm" "rc"))))
|
(let ((bins (cl-remove-if #'executable-find '("rdm" "rc"))))
|
||||||
(if (/= (length bins) 2)
|
(if (/= (length bins) 0)
|
||||||
(warn "cc-mode: couldn't find %s, disabling rtags support" bins)
|
(warn "cc-mode: couldn't find the rtag client and/or server programs %s, disabling rtags support" bins)
|
||||||
(add-hook! (c-mode c++-mode) #'rtags-start-process-unless-running)
|
(add-hook! (c-mode c++-mode) #'rtags-start-process-unless-running)
|
||||||
(set! :lookup '(c-mode c++-mode)
|
(set! :lookup '(c-mode c++-mode)
|
||||||
:definition #'rtags-find-symbol-at-point
|
:definition #'rtags-find-symbol-at-point
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue