diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2015-01-27 17:12:40 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2015-01-27 17:12:40 +0000 |
commit | 0466895d8f2b73b45be72b30d7974f6978c3f36f (patch) | |
tree | 95be27141e465b8f9884cdf087ab28ff85a0f15c /coq/coq-compile-common.el | |
parent | 2af210aeab374b6fcd55db2a155d897a17face0b (diff) |
Fix coq project parsing and interpreting for coq v8.5.
Diffstat (limited to 'coq/coq-compile-common.el')
-rw-r--r-- | coq/coq-compile-common.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coq/coq-compile-common.el b/coq/coq-compile-common.el index a3c08feb..45fe2564 100644 --- a/coq/coq-compile-common.el +++ b/coq/coq-compile-common.el @@ -108,6 +108,10 @@ Must be used together with `coq-par-enable'." (every 'stringp (cdr entry)) (equal (length entry) 3)) (and (listp entry) + (eq (car entry) 'recnoimport) + (every 'stringp (cdr entry)) + (equal (length entry) 3)) + (and (listp entry) (every 'stringp entry) (equal (length entry) 2)))) path))) @@ -270,6 +274,11 @@ forms of include options ('-I' and '-R'). An element can be - A list of the form '(rec dir path)' (where dir and path are strings) specifying a directory to be recursively mapped to the logical path 'path' ('-R dir -as path'). + - A list of the form '(recnoimport dir path)' (where dir and + path are strings) specifying a directory to be recursively + mapped to the logical path 'path' ('-Q dir path'), but not + imported (modules accessible for import with qualified names + only). - A list of the form '(norec dir path)', specifying a directory to be mapped to the logical path 'path' ('-I dir -as path'). @@ -285,6 +294,11 @@ directory (see `coq-load-path-include-current')." (const rec) (string :tag "directory") (string :tag "log path")) + (list :tag + "recursive directory without recursive inport with path (-Q ... ...)" + (const recnoimport) + (string :tag "directory") + (string :tag "log path")) (list :tag "simple directory with path (-I ... -as ...)" (const nonrec) @@ -457,6 +471,8 @@ options they are translated." (list "-I" (expand-file-name entry))) ((eq (car entry) 'nonrec) (list "-I" (expand-file-name (nth 1 entry)) "-as" (nth 2 entry))) + ((eq (car entry) 'recnoimport) + (list "-Q" (expand-file-name (nth 1 entry)) (nth 2 entry))) (t (if (eq (car entry) 'rec) (setq entry (cdr entry))) |