aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Clément Pit-Claudel <cpitclaudel@users.noreply.github.com>2018-10-30 10:36:05 -0400
committerGravatar GitHub <noreply@github.com>2018-10-30 10:36:05 -0400
commit798739255ec1002438b6f9250acac9786ca28554 (patch)
treed056d0ac857e5a32dcdc3cb5d92ef553f3070c7c
parent5b7b84bc5b44fd87905b16a67367ece4e7fa7ee3 (diff)
parentc32a3ac3de75eb9c94dbfd417a0c6508d350fa69 (diff)
Merge pull request #396 from dbp/coqproject-local
Use non-remote path to expand paths in _CoqProject when file is remote.
-rw-r--r--coq/coq-system.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/coq/coq-system.el b/coq/coq-system.el
index e3164644..68d036f1 100644
--- a/coq/coq-system.el
+++ b/coq/coq-system.el
@@ -547,9 +547,11 @@ variable."
(let* ((contents (with-current-buffer proj-file-buf (buffer-string)))
(options (coq--read-options-from-project-file contents))
(proj-file-name (buffer-file-name proj-file-buf))
- (proj-file-dir (file-name-directory proj-file-name)))
+ (proj-file-dir (file-name-directory proj-file-name))
+ (proj-file-local-dir (or (file-remote-p proj-file-dir 'localname)
+ proj-file-dir)))
(unless avoidargs (setq coq-prog-args (coq--extract-prog-args options)))
- (unless avoidpath (setq coq-load-path (coq--extract-load-path options proj-file-dir)))
+ (unless avoidpath (setq coq-load-path (coq--extract-load-path options proj-file-local-dir)))
(let ((msg
(cond
((and avoidpath avoidargs) "Coqtop args and load path")