From 06e521e61835022bb8fc2368fc190cb31a077687 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Sat, 7 Jan 2017 19:37:53 -0500 Subject: Kludge to get a Windows-valid .dir-locals.el Pass in PATHSEP=";" to `make .dir-locals.el`. Hopefully I'll find a better way soon. --- .dir-locals.el.in | 4 ++-- Makefile | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.dir-locals.el.in b/.dir-locals.el.in index 6153af754..5945f1a68 100644 --- a/.dir-locals.el.in +++ b/.dir-locals.el.in @@ -1,5 +1,5 @@ ((coq-mode . ((eval . (let* ((project-root (locate-dominating-file buffer-file-name "_CoqProject")) (coqprime-folder (expand-file-name "@COQPRIME@" project-root)) - (coq-path (split-string (or (getenv "COQPATH") "") ":" t))) + (coq-path (split-string (or (getenv "COQPATH") "") "@PATHSEP@" t))) (unless (memql coqprime-folder coq-path) - (setenv "COQPATH" (mapconcat #'identity (cons coqprime-folder coq-path) ":")))))))) + (setenv "COQPATH" (mapconcat #'identity (cons coqprime-folder coq-path) "@PATHSEP@")))))))) diff --git a/Makefile b/Makefile index 58b0614cb..20ae25d12 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ VERBOSE?= SHOW := $(if $(VERBOSE),@true "",@echo "") HIDE := $(if $(VERBOSE),,@) +PATHSEP?=: + .PHONY: coq clean update-_CoqProject cleanall install \ install-coqprime clean-coqprime coqprime \ specific non-specific \ @@ -130,4 +132,4 @@ printenv:: @echo "COQPATH = $$COQPATH" .dir-locals.el:: - sed 's:@COQPRIME@:$(COQPRIME_FOLDER):g' .dir-locals.el.in > $@ + sed 's:@COQPRIME@:$(COQPRIME_FOLDER):g' .dir-locals.el.in | sed s'/@PATHSEP@/$(PATHSEP)/g' > $@ -- cgit v1.2.3