aboutsummaryrefslogtreecommitdiff
path: root/coq
diff options
context:
space:
mode:
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 4b0f6070..daa71eb6 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -190,8 +190,12 @@
((eq (span-property span 'type) 'comment))
((eq (span-property span 'type) 'goalsave)
- (setq ans (concat coq-forget-id-command
- (span-property span 'name) proof-terminal-string)))
+ ;; FIXME da 5.10.99: I added in this test for an unnamed
+ ;; theorem. Probably it is harmless (it's a new case for LEGO
+ ;; and Isabelle).
+ (unless (eq (span-property span 'name) proof-unnamed-theorem-name)
+ (setq ans (concat lego-forget-id-command
+ (span-property span 'name) proof-terminal-string))))
((proof-string-match (concat "\\`\\(" coq-keywords-decl-defn-regexp
"\\)\\s-*\\(" proof-id "\\)\\s-*[\\[,:]") str)