aboutsummaryrefslogtreecommitdiff
path: root/coq/coq.el
diff options
context:
space:
mode:
authorCyril Anaclet2020-05-11 15:00:47 +0200
committerAnaclet2020-05-29 11:05:58 +0200
commit8e12eee54e36ca16d4b4530e1509479f22929e4f (patch)
treebdfd16e4f291db65f638b0b94e54f23c7fec989b /coq/coq.el
parent0bfd208037646a1e1871dae9fc6fc6be0f7bd39c (diff)
First try for feature #487
Diffstat (limited to 'coq/coq.el')
-rw-r--r--coq/coq.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 71112fc1..8ebf3054 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1222,7 +1222,14 @@ be called and no command will be sent to Coq."
(string-match-p "BackTo\\s-" cmd))
(if (coq--post-v810)
(list "Unset Silent." (coq-diffs))
- (list "Unset Silent.")))))
+ (list "Unset Silent.")))
+ ((or
+ ;; 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)
+ (when coq-show-proof
+ (list "Show Proof." "Show.")))))))
+
(defpacustom auto-adapt-printing-width t
"If non-nil, adapt automatically printing width of goals window.