aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2003-06-05 10:45:12 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2003-06-05 10:45:12 +0000
commit9c77766565cc9c29289ecf1c7d6c964d6af388ce (patch)
tree6f63514fd2f153520142b29b72819d413502c551 /coq
parenta9c79785fd0870121e3ab6de9b8963435c5c6548 (diff)
Make find-and-forget robust for proverproc regions
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 810db4b4..2476fbf4 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -267,7 +267,8 @@ toplevel \"Coq <\". Returns nil if yes. This assumes that no
;; nested proofs.
-(defun coq-is-comment-p (span) (eq (span-property span 'type) 'comment))
+(defun coq-is-comment-or-proverprocp (span)
+ (memq (span-property span 'type) '(comment proverproc)))
(defun coq-is-goalsave-p (span) (eq (span-property span 'type) 'goalsave))
(defun coq-is-module-equal-p (str) ;;cannot appear vith coq < 7.4
(and (proof-string-match "\\`\\(Declare\\s-\\)?\\s-*\\<Module\\>.*:=" str)
@@ -304,7 +305,7 @@ toplevel \"Coq <\". Returns nil if yes. This assumes that no
(while (and span (not ans))
(setq str (span-property span 'cmd))
(cond
- ((coq-is-comment-p span)) ; do nothing
+ ((coq-is-comment-or-proverprocp span)) ; do nothing
;; Module <Type> T ... :=... . inside proof -> like Definition...:=...
;; (should actually be disallowed in coq)