aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coq/coq-syntax.el3
-rw-r--r--generic/proof-shell.el7
2 files changed, 5 insertions, 5 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el
index a27274c5..3ae7fbca 100644
--- a/coq/coq-syntax.el
+++ b/coq/coq-syntax.el
@@ -1305,8 +1305,7 @@ It is used:
(defconst coq-show-proof-diffs-regexp
- ;; FIXME/TODO: enhance this regexp
- "Show Proof\\(\\.\\| Diffs\\.\\| Diffs removed\\.\\)")
+ "^[ ]*Show Proof\\( Diffs\\| Diffs removed\\)?\\.$")
(defconst coq-save-command-regexp
;; FIXME: The surrounding grouping parens are probably not needed.
diff --git a/generic/proof-shell.el b/generic/proof-shell.el
index b6bf9225..8f23608a 100644
--- a/generic/proof-shell.el
+++ b/generic/proof-shell.el
@@ -1126,7 +1126,7 @@ contains only invisible elements for Prooftree synchronization."
;; but we delay this until sending the next command, attempting
;; to parallelize prover and Emacs somewhat. (PG 4.0 change)
- (setq proof-action-list (cdr proof-action-list))
+ (setq proof-action-list (cdr proof-action-list))
(setq cbitems (cons item
(proof-shell-slurp-comments)))
@@ -1193,7 +1193,8 @@ contains only invisible elements for Prooftree synchronization."
(or (null proof-action-list)
(cl-every
(lambda (item) (memq 'proof-tree-show-subgoal (nth 3 item)))
- proof-action-list)))))))
+ proof-action-list)
+ (string= (car (nth 1 item)) "Show.")))))))
(defun proof-shell-insert-loopback-cmd (cmd)
@@ -1715,7 +1716,7 @@ i.e., 'goals or 'response."
(buffer-substring-no-properties rstart gmark)))
;; display goals output second so it persists in 2-pane mode
(unless (memq 'no-goals-display flags)
- (pg-goals-display proof-shell-last-goals-output both))
+ (pg-goals-display proof-shell-last-goals-output t))
;; indicate a goals output has been given
'goals))