aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcourtieu2013-10-22 10:57:39 +0000
committercourtieu2013-10-22 10:57:39 +0000
commit427e97df9f723cc47e5053c743dfe19daee88511 (patch)
treef43f441ffb042b7a6868d8212df03164ac865c07
parent6a43dd3dc162412fbd9a9863840536b01043937d (diff)
emacs config: next-error search path ok even if default-directory unset.
This way next-error behaves accordingly with make -C. Making the setting of default-directory independent of the compile/next-error setting. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16905 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--.dir-locals.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 0b8d726888..182d5ff713 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -17,9 +17,10 @@
;; Setting the compilation directory to coq root. This is
;; mutually exclusive with the setting of default-directory
- ;; below.
+ ;; below. Also setting the path for next error.
(unless coq-project-find-file
- (setq compile-command (concat "make -C " coq-root-directory)))
+ (setq compile-command (concat "make -C " coq-root-directory))
+ (setq compilation-search-path (cons coq-root-directory nil)))
;; Set default directory to coq root ONLY IF variable
;; coq-project-find-file is non nil. This should remain a