aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Courtieu2001-04-10 14:38:19 +0000
committerPierre Courtieu2001-04-10 14:38:19 +0000
commit021bed3d60eee84cea6099e22737accf37e3b21c (patch)
tree01f26f27d967a547ce3a7d5475ec70910bd8d6f3
parent08506ce6b80ac8e1a7572dae20faeb0df2c0ad11 (diff)
Modification of proof-script-command-end-regexp to allow commands
ended by ".eof"
-rw-r--r--coq/coq.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 070b55d3..6e2325f1 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -58,7 +58,7 @@
["Intros..." coq-Intros t]
["Show ith goal..." coq-Show t]
["Apply" coq-Apply t]
- ["Search isos..." coq-SearchIsos t]
+ ["Search isos/pattern..." coq-SearchIsos t]
["Begin Section..." coq-begin-Section t]
["End Section" coq-end-Section t]
["Compile" coq-Compile t]))
@@ -299,9 +299,12 @@ This is specific to coq-mode."
(interactive)
(let (cmd)
(proof-shell-ready-prover)
- (setq cmd (read-string "SearchIsos: " nil 'proof-minibuffer-history))
+ (setq cmd (read-string
+ (if coq-version-is-V7 "SearchPattern: " "SearchIsos: ")
+ nil 'proof-minibuffer-history))
(proof-shell-invisible-command
- (format "SearchIsos %s." cmd))))
+ (format (if coq-version-is-V7 "SearchPattern %s."
+ "SearchIsos %s.") cmd))))
(defun coq-Print ()
@@ -463,7 +466,8 @@ This is specific to coq-mode."
(defun coq-mode-config ()
(setq proof-terminal-char ?\.)
- (setq proof-script-command-end-regexp "[.]\\([ \t\n\r]\\)")
+ (setq proof-script-command-end-regexp
+ (if coq-version-is-V7 "[.]\\([ \t\n\r]\\)\\|[.]\\'" "[.]"))
(setq proof-comment-start "(*")
(setq proof-comment-end "*)")
(setq proof-unnamed-theorem-name "Unnamed_thm") ; Coq's default name