From 7aafefd252df6ff13b93ad388e767c771f56e916 Mon Sep 17 00:00:00 2001 From: Pierre Courtieu Date: Mon, 12 Dec 2016 11:27:24 +0100 Subject: remove default absolute name from coq-prog-name, but keep dipsplaying it when asking for it. --- coq/coq-system.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coq/coq-system.el') diff --git a/coq/coq-system.el b/coq/coq-system.el index 997e93d2..5d9df691 100644 --- a/coq/coq-system.el +++ b/coq/coq-system.el @@ -30,7 +30,8 @@ On Windows you might need something like: :group 'coq) (defcustom coq-prog-name - (proof-locate-executable "coqtop" t '("C:/Program Files/Coq/bin")) + (if (executable-find "coqtop") "coqtop" + (proof-locate-executable "coqtop" t '("C:/Program Files/Coq/bin"))) "*Name of program to run as Coq. See `proof-prog-name', set from this. On Windows with latest Coq package you might need something like: C:/Program Files/Coq/bin/coqtop.opt.exe -- cgit v1.2.3 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