aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar Hendrik Tews <hendrik@askra.de>2012-09-12 12:33:13 +0000
committerGravatar Hendrik Tews <hendrik@askra.de>2012-09-12 12:33:13 +0000
commit4bce74dd1e4682086b9497ad3577c88b4a01df0c (patch)
treeba1a22f157102cd4fc05e79c17fc5ef91a0949b6 /coq
parent1e5fcb1a36df556dc7c0b8bac2b0b36a8e8d2743 (diff)
treat #450 by requiring that proofs are started with Proof
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/coq/coq.el b/coq/coq.el
index ceb81311..d260ef48 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -199,8 +199,14 @@ See also `coq-hide-additional-subgoals'."
:group 'coq-config
:package-version '(ProofGeneral . "4.2"))
+;; Ignore all commands that start a proof. Otherwise "Proof" will appear
+;; as superfluous node in the proof tree. Note that we cannot ignore Proof,
+;; because, Fixpoint does not display the proof goal, see Coq bug #2776.
(defcustom coq-proof-tree-ignored-commands-regexp
- "^\\(Show\\)\\|\\(Locate\\)"
+ (concat "^\\(\\(Show\\)\\|\\(Locate\\)\\|"
+ "\\(Theorem\\)\\|\\(Lemma\\)\\|\\(Remark\\)\\|\\(Fact\\)\\|"
+ "\\(Corollary\\)\\|\\(Proposition\\)\\|\\(Definition\\)\\|"
+ "\\(Let\\)\\|\\(Fixpoint\\)\\|\\(CoFixpoint\\)\\)")
"Regexp for `proof-tree-ignored-commands-regexp'."
:type 'regexp
:group 'coq-proof-tree)