aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2003-02-24 10:38:01 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2003-02-24 10:38:01 +0000
commit3563de3849c59f7b97fc9406960629a7258c8a84 (patch)
tree70beb3cbb61c80e9e24365cf9448d30fc3d3fa53 /coq
parent031876435b4b287f17ff74dbbc4999c80b91161b (diff)
Fix some compile errors
Diffstat (limited to 'coq')
-rw-r--r--coq/coq-syntax.el46
-rw-r--r--coq/coq.el4
2 files changed, 33 insertions, 17 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el
index cc6ecc60..e54822ef 100644
--- a/coq/coq-syntax.el
+++ b/coq/coq-syntax.el
@@ -51,27 +51,41 @@ is set to t, then ProofGeneral guesses the version of coq by doing
;; only coq-version-is-V74 and coq-version-is-V7 are used later (V6
;; corresponds to v7=nil and v74=nil)
+(unless (noninteractive) ;; DA: evaluating here gives error during compile
(let* ((seedoc " (to force another version, do for example C-h v coq-version-is-V7)")
(v74 (concat "proofgeneral is in coq >= 7.4 mode" seedoc))
(v7 (concat "proofgeneral is in coq =< 7.3 mode" seedoc))
(v6 (concat "proofgeneral is in coq V6 mode" seedoc)))
(cond
- (coq-version-is-V74 (message v74) (setq coq-version-is-V7 t))
- (coq-version-is-V7 (message v7) (setq coq-version-is-V74 nil))
- (coq-version-is-V6 (message v6) (setq coq-version-is-V74 nil) (setq coq-version-is-V7 nil))
- (t
- (let* ((str (shell-command-to-string (concat coq-prog-name " -v")))
- (x (string-match "version \\([.0-9]*\\)" str))
- (num (match-string 1 str)))
- (cond
- ((string-match num "\\<6.") (message msgv6)
- (setq coq-version-is-V7 nil) (setq coq-version-is-V74 nil))
- ((or (string-match num "\\<7.0") (string-match num "\\<7.1")
- (string-match num "\\<7.2") (string-match num "\\<7.3"))
- (message v7)
- (setq coq-version-is-V7 t) (setq coq-version-is-V74 nil))
- ;default: 7.3.1 and above ---> 7.4
- (t (message v74) (setq coq-version-is-V7 t) (setq coq-version-is-V74 t)))))))
+ (coq-version-is-V74
+ (message v74)
+ (setq coq-version-is-V7 t))
+ (coq-version-is-V7
+ (message v7)
+ (setq coq-version-is-V74 nil))
+ (coq-version-is-V6
+ (message v6)
+ (setq coq-version-is-V74 nil)
+ (setq coq-version-is-V7 nil))
+ (t
+ (let* ((str (shell-command-to-string (concat coq-prog-name " -v")))
+ (x (string-match "version \\([.0-9]*\\)" str))
+ (num (match-string 1 str)))
+ (cond
+ ((string-match num "\\<6.")
+ (message v6)
+ (setq coq-version-is-V7 nil)
+ (setq coq-version-is-V74 nil))
+ ((or (string-match num "\\<7.0") (string-match num "\\<7.1")
+ (string-match num "\\<7.2") (string-match num "\\<7.3"))
+ (message v7)
+ (setq coq-version-is-V7 t)
+ (setq coq-version-is-V74 nil))
+ ;;default: 7.3.1 and above ---> 7.4
+ (t
+ (message v74)
+ (setq coq-version-is-V7 t)
+ (setq coq-version-is-V74 t))))))))
;; ----- keywords for font-lock.
diff --git a/coq/coq.el b/coq/coq.el
index fd008ec8..810db4b4 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -847,7 +847,6 @@ This is specific to coq-mode."
proof-shell-process-file nil
proof-shell-inform-file-retracted-cmd nil)))
-(provide 'coq)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -896,6 +895,9 @@ mouse activation."
,(format "Check %s." thm))))))
)
+(provide 'coq)
+
+
;;; Local Variables: ***
;;; tab-width:2 ***
;;; fill-column: 85 ***