aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2014-12-23 02:00:07 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2014-12-23 02:00:07 +0000
commit424ce5f435a14cbcfc85d333d365d0066106e55b (patch)
tree7ba1df349c1e08d19d1e7deaccbdc524f4e9f1d4
parent13d8ad97def828eb7ee441eec21d1cbd96e5f5b2 (diff)
Fix a special case in _CoqProject syntax (empty string).
-rw-r--r--coq/coq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 534a2a62..5667f6d6 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1157,8 +1157,9 @@ allows to call coqtop from a subdirectory of the project."
(second (match-string 2))
(first (if (null dirprefix) firstfname
(expand-file-name firstfname dirprefix))))
- (if second
- (setq opt (cons (list first second) opt))
+ (if second ; if second arg is "" (two doublequotes), it means empty string
+ (let ((sec (if (string-equal second "\"\"") "" second)))
+ (setq opt (cons (list first sec) opt)))
(setq opt (cons first opt))))))
(reverse opt))))