From 805c1b7ddc1a5c9254bc2252b2d87e79311d4521 Mon Sep 17 00:00:00 2001 From: Pierre Courtieu Date: Tue, 13 Dec 2016 16:40:05 +0100 Subject: Same name guessing for coqc/coqdep then for coqtop. --- coq/coq-system.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'coq/coq-system.el') diff --git a/coq/coq-system.el b/coq/coq-system.el index 5d9df691..ffec7874 100644 --- a/coq/coq-system.el +++ b/coq/coq-system.el @@ -43,13 +43,15 @@ See also `coq-prog-env' to adjust the environment." :group 'coq) (defcustom coq-dependency-analyzer - (proof-locate-executable "coqdep" t '("C:/Program Files/Coq/bin")) + (if (executable-find "coqdep") "coqdep" + (proof-locate-executable "coqdep" t '("C:/Program Files/Coq/bin"))) "Command to invoke coqdep." :type 'string :group 'coq) (defcustom coq-compiler - (proof-locate-executable "coqc" t '("C:/Program Files/Coq/bin")) + (if (executable-find "coqc") "coqc" + (proof-locate-executable "coqc" t '("C:/Program Files/Coq/bin"))) "Command to invoke the coq compiler." :type 'string :group 'coq) -- cgit v1.2.3