diff options
| author | Erik Martin-Dorel | 2019-07-26 16:57:15 +0000 |
|---|---|---|
| committer | Erik Martin-Dorel | 2019-07-26 20:26:13 +0200 |
| commit | a487fd21b7bd620ea470d42b2c8d9f200858e9d1 (patch) | |
| tree | 07021e17057e0dc57f731cdf9ca23fab9156be6d | |
| parent | 057fb82fdb116ace1b3f489af3282f87fbf6a6a8 (diff) | |
fix: Add missing "Set Diffs ..." command in some backtracking case
| -rw-r--r-- | coq/coq.el | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1214,13 +1214,15 @@ be called and no command will be sent to Coq." ;; the number of nested goals, then Unset Silent and Show the goal (and (string-match-p "BackTo\\s-" cmd) (> (length coq-last-but-one-proofstack) coq--retract-naborts))) - ; "Set Diffs" always re-prints the proof context with (if enabled) diffs + ;; "Set Diffs" always re-prints the proof context with (if enabled) diffs (list "Unset Silent." (if (coq--post-v810) (coq-diffs) "Show."))) ((or ;; If we go back in the buffer and not in the above case, then only Unset - ;; silent (there is no goal to show). + ;; silent (there is no goal to show). Still, we need to "Set Diffs" again (string-match-p "BackTo\\s-" cmd)) - (list "Unset Silent.")))) + (if (coq--post-v810) + (list "Unset Silent." (coq-diffs)) + (list "Unset Silent."))))) (defpacustom auto-adapt-printing-width t "If non-nil, adapt automatically printing width of goals window. |
