aboutsummaryrefslogtreecommitdiff
path: root/coq
diff options
context:
space:
mode:
authorErik Martin-Dorel2020-05-20 21:48:20 +0200
committerAnaclet2020-05-29 11:05:58 +0200
commit411ebb27fda4d39fc22baf341dcdde2341632b8d (patch)
tree04916bcb3c840cebfb972864f3c0d4fdfb4e764b /coq
parentff9b5b11b4266b9260b74d772ae2e5848221f6f8 (diff)
fix: Do "Show Proof…" (with "?Goal") as soon as the proof is started
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 942e85fe..10aa07bf 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1246,14 +1246,16 @@ be called and no command will be sent to Coq."
(list "Unset Silent." (coq-diffs) )
(list "Unset Silent.")))
((or
+ ;; If starting a proof, Show Proof if need be
+ (coq-goal-command-str-p cmd)
;; If doing (not closing) a proof, Show Proof if need be
(and (not (string-match-p coq-save-command-regexp-strict cmd))
- (> (length coq-last-but-one-proofstack) 0)
+ (> (length coq-last-but-one-proofstack) 0)))
(when coq-show-proof-stepwise
(or
(when (eq coq-diffs 'off) (list "Show Proof." ))
(when (eq coq-diffs 'on) (list "Show Proof Diffs."))
- (when (eq coq-diffs 'removed) (list "Show Proof Diffs removed.")))))))))
+ (when (eq coq-diffs 'removed) (list "Show Proof Diffs removed.")))))))
(defpacustom auto-adapt-printing-width t