aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-system.el
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2016-01-11 09:44:33 -0500
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2016-01-14 14:39:53 -0500
commit27b07f7565013a35d2f1727a5d052078b4262da8 (patch)
tree84bf5e37d38dd7eeb51b9a9bbb480cd9690acdf1 /coq/coq-system.el
parent7534276abdf6684fa4781384f1711c50f8830073 (diff)
Mark coq-load-path-include-current as obsolete
Diffstat (limited to 'coq/coq-system.el')
-rw-r--r--coq/coq-system.el44
1 files changed, 23 insertions, 21 deletions
diff --git a/coq/coq-system.el b/coq/coq-system.el
index 7664f08a..6f49d45f 100644
--- a/coq/coq-system.el
+++ b/coq/coq-system.el
@@ -235,30 +235,32 @@ This setting is only relevant with Coq < 8.5."
:safe 'booleanp
:group 'coq-auto-compile)
-(defun coq-option-of-load-path-entry (entry &optional pre-v85)
- "Translate a single ENTRY from `coq-load-path' into options.
+(make-obsolete-variable 'coq-load-path-include-current "Coq 8.5 does not need it" "4.3")
+
+ (defun coq-option-of-load-path-entry (entry &optional pre-v85)
+ "Translate a single ENTRY from `coq-load-path' into options.
See `coq-load-path' for the possible forms of ENTRY and to which
options they are translated. Use a non-nil PRE-V85 flag to
request compatibility handling of flags."
- (if pre-v85 ;; !!! Which base directory do we expand against? Should the entries of load-path just always be absolute?
- ;; Note that we don't handle 'recnoimport in 8.4, and we don't handle
- ;; 'nonrec in 8.5.
- (pcase entry
- ((or (and (pred stringp) dir) `(ocamlimport ,dir))
- (list "-I" (expand-file-name dir)))
- (`(nonrec ,dir ,alias)
- (list "-I" (expand-file-name dir) "-as" alias))
- ((or `(rec ,dir ,alias) `(,dir ,alias))
- (list "-R" (expand-file-name dir) alias)))
- (pcase entry
- ((and (pred stringp) dir)
- (list "-Q" (expand-file-name dir) ""))
- (`(ocamlimport ,dir)
- (list "-I" (expand-file-name dir)))
- (`(recnoimport ,dir ,alias)
- (list "-Q" (expand-file-name dir) alias))
- ((or `(rec ,dir ,alias) `(,dir ,alias))
- (list "-R" (expand-file-name dir) alias)))))
+ (if pre-v85 ;; !!! Which base directory do we expand against? Should the entries of load-path just always be absolute?
+ ;; Note that we don't handle 'recnoimport in 8.4, and we don't handle
+ ;; 'nonrec in 8.5.
+ (pcase entry
+ ((or (and (pred stringp) dir) `(ocamlimport ,dir))
+ (list "-I" (expand-file-name dir)))
+ (`(nonrec ,dir ,alias)
+ (list "-I" (expand-file-name dir) "-as" alias))
+ ((or `(rec ,dir ,alias) `(,dir ,alias))
+ (list "-R" (expand-file-name dir) alias)))
+ (pcase entry
+ ((and (pred stringp) dir)
+ (list "-Q" (expand-file-name dir) ""))
+ (`(ocamlimport ,dir)
+ (list "-I" (expand-file-name dir)))
+ (`(recnoimport ,dir ,alias)
+ (list "-Q" (expand-file-name dir) alias))
+ ((or `(rec ,dir ,alias) `(,dir ,alias))
+ (list "-R" (expand-file-name dir) alias)))))
(defun coq-include-options (load-path &optional current-directory pre-v85)
"Build the base list of include options for coqc, coqdep and coqtop.