Skip to content

Commit 737b01a

Browse files
committed
Don't set global variables from a hidden file. (!)
1 parent 7319524 commit 737b01a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.dir-locals.el

+7-4
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@
1111
(coq-project-find-file
1212
(and (boundp 'coq-project-find-file) coq-project-find-file)))
1313
;; coq tags file and coq debugger executable
14-
(setq tags-file-name (concat coq-root-directory "TAGS")
15-
camldebug-command-name (concat coq-root-directory
14+
(set (make-local-variable 'tags-file-name)
15+
(concat coq-root-directory "TAGS"))
16+
(setq camldebug-command-name (concat coq-root-directory
1617
"dev/ocamldebug-coq"))
1718

1819
;; Setting the compilation directory to coq root. This is
1920
;; mutually exclusive with the setting of default-directory
2021
;; below. Also setting the path for next error.
2122
(unless coq-project-find-file
22-
(setq compile-command (concat "make -C " coq-root-directory))
23-
(setq compilation-search-path (cons coq-root-directory nil)))
23+
(set (make-local-variable 'compile-command)
24+
(concat "make -C " coq-root-directory))
25+
(set (make-local-variable 'compilation-search-path)
26+
(cons coq-root-directory nil)))
2427

2528
;; Set default directory to coq root ONLY IF variable
2629
;; coq-project-find-file is non nil. This should remain a

0 commit comments

Comments
 (0)