aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2016-12-12 11:27:24 +0100
committerGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2016-12-12 11:27:24 +0100
commit7aafefd252df6ff13b93ad388e767c771f56e916 (patch)
treefbcf43919defebc04c27d805864d6d99e3404fdf /generic
parentc1e06d2c2d67236aeedb59137d155d93d0646596 (diff)
remove default absolute name from coq-prog-name, but keep dipsplaying it when asking for it.
Diffstat (limited to 'generic')
-rw-r--r--generic/proof-shell.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el
index 64eee4c8..7b19fded 100644
--- a/generic/proof-shell.el
+++ b/generic/proof-shell.el
@@ -293,8 +293,10 @@ process command."
(apply proof-guess-command-line (list name)))))
(if proof-prog-name-ask
- (setq proof-prog-name (read-shell-command "Run process: "
- proof-prog-name)))
+ ;; if this option is set, an absolute file name is better to show if possible
+ (let ((prog-name (locate-file proof-prog-name exec-path exec-suffixes 1)))
+ (setq proof-prog-name (read-shell-command "Run process: "
+ prog-name))))
(let
((proc (downcase proof-assistant)))