@@ -1215,25 +1215,41 @@ should match the `coq-show-proof-diffs-regexp'."
1215
1215
; ; If user issued a printing option then t printing.
1216
1216
(and (string-match-p " \\ (S\\ |Uns\\ )et\\ s-+Printing" cmd)
1217
1217
(> (length coq-last-but-one-proofstack) 0 )))
1218
- (list " Show."
1219
- (when coq-show-proof-stepwise
1220
- (or
1221
- (when (eq coq-diffs 'off ) " Show Proof." )
1222
- (when (eq coq-diffs 'on ) " Show Proof Diffs." )
1223
- (when (eq coq-diffs 'removed ) " Show Proof Diffs removed." )))))
1218
+ (let ((showlist (list " Show." )))
1219
+ (when coq-show-proof-stepwise
1220
+ (add-to-list 'showlist
1221
+ (if (coq--post-v811)
1222
+ (or
1223
+ (when (eq coq-diffs 'off ) " Show Proof." )
1224
+ (when (eq coq-diffs 'on ) " Show Proof Diffs." )
1225
+ (when (eq coq-diffs 'removed ) " Show Proof Diffs removed." ))
1226
+ " Show Proof." )
1227
+ t ))
1228
+ showlist))
1224
1229
1225
1230
((or
1226
1231
; ; If we go back in the buffer and the number of abort is less than
1227
1232
; ; the number of nested goals, then Unset Silent and Show the goal
1228
1233
(and (string-match-p " BackTo\\ s-" cmd)
1229
1234
(> (length coq-last-but-one-proofstack) coq--retract-naborts)))
1230
1235
; ; "Set Diffs" always re-prints the proof context with (if enabled) diffs
1231
- (list " Unset Silent." (if (coq--post-v810) (coq-diffs) " Show." )
1232
- (when coq-show-proof-stepwise
1233
- (or
1234
- (when (eq coq-diffs 'off ) " Show Proof." )
1235
- (when (eq coq-diffs 'on ) " Show Proof Diffs." )
1236
- (when (eq coq-diffs 'removed ) " Show Proof Diffs removed." )))))
1236
+ ; ; (list "Unset Silent." (if (coq--post-v810) (coq-diffs) "Show.")
1237
+ ; ; (when coq-show-proof-stepwise
1238
+ ; ; (or
1239
+ ; ; (when (eq coq-diffs 'off) "Show Proof.")
1240
+ ; ; (when (eq coq-diffs 'on) "Show Proof Diffs.")
1241
+ ; ; (when (eq coq-diffs 'removed) "Show Proof Diffs removed.")))))
1242
+ (let ((showlist (list " Unset Silent." (if (coq--post-v810) (coq-diffs) " Show." ))))
1243
+ (when coq-show-proof-stepwise
1244
+ (add-to-list 'showlist
1245
+ (if (coq--post-v811)
1246
+ (or
1247
+ (when (eq coq-diffs 'off ) " Show Proof." )
1248
+ (when (eq coq-diffs 'on ) " Show Proof Diffs." )
1249
+ (when (eq coq-diffs 'removed ) " Show Proof Diffs removed." ))
1250
+ " Show Proof." )
1251
+ t ))
1252
+ showlist))
1237
1253
1238
1254
((or
1239
1255
; ; If we go back in the buffer and not in the above case, then only Unset
@@ -1249,10 +1265,12 @@ should match the `coq-show-proof-diffs-regexp'."
1249
1265
(and (not (string-match-p coq-save-command-regexp-strict cmd))
1250
1266
(> (length coq-last-but-one-proofstack) 0 )))
1251
1267
(when coq-show-proof-stepwise
1268
+ (if (coq--post-v811)
1252
1269
(or
1253
1270
(when (eq coq-diffs 'off ) (list " Show Proof." ))
1254
1271
(when (eq coq-diffs 'on ) (list " Show Proof Diffs." ))
1255
- (when (eq coq-diffs 'removed ) (list " Show Proof Diffs removed." )))))))
1272
+ (when (eq coq-diffs 'removed ) (list " Show Proof Diffs removed." )))
1273
+ (list " Show Proof." ))))))
1256
1274
1257
1275
1258
1276
(defpacustom auto-adapt-printing-width t
0 commit comments