From c59f5844447ea8e3b8ac3a49badb718ba107973f Mon Sep 17 00:00:00 2001 From: UndeadKernel Date: Thu, 11 Jan 2018 15:49:50 +0100 Subject: [PATCH] Correctly report when rtags's client or server are not found. --- modules/lang/cc/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index bc63b9a71..182fef305 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -206,9 +206,9 @@ compilation database is present in the project.") ;; ...and don't auto-jump to first match before making a selection. rtags-jump-to-first-match nil) - (let ((bins (cl-remove-if-not #'executable-find '("rdm" "rc")))) - (if (/= (length bins) 2) - (warn "cc-mode: couldn't find %s, disabling rtags support" bins) + (let ((bins (cl-remove-if #'executable-find '("rdm" "rc")))) + (if (/= (length bins) 0) + (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) (set! :lookup '(c-mode c++-mode) :definition #'rtags-find-symbol-at-point