From 021bed3d60eee84cea6099e22737accf37e3b21c Mon Sep 17 00:00:00 2001 From: Pierre Courtieu Date: Tue, 10 Apr 2001 14:38:19 +0000 Subject: Modification of proof-script-command-end-regexp to allow commands ended by ".eof" --- coq/coq.el | 12 ++++++++---- 1 file 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 -- cgit v1.2.3