aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-utils.el
diff options
context:
space:
mode:
authorDavid Aspinall2001-12-10 19:20:10 +0000
committerDavid Aspinall2001-12-10 19:20:10 +0000
commit7c2271b7ddd01b33bf7201330a8d65f544560070 (patch)
tree4e45c05811d577f0cf405dd1d81dc9e286b9d956 /generic/proof-utils.el
parent90285e645ae7738295620050d2ad69f4aa841e67 (diff)
Add handling of proof-trace-buffer.
Diffstat (limited to 'generic/proof-utils.el')
-rw-r--r--generic/proof-utils.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/generic/proof-utils.el b/generic/proof-utils.el
index eea38ce0..a9197dcd 100644
--- a/generic/proof-utils.el
+++ b/generic/proof-utils.el
@@ -418,6 +418,18 @@ Returns new END value."
;; (buffer-substring start (point-max))
))))
+;; An analogue of proof-response-buffer-display
+(defun proof-trace-buffer-display (str)
+ "Display STR in the trace buffer."
+ (let (start end)
+ (with-current-buffer proof-trace-buffer
+ (goto-char (point-max))
+ (newline)
+ (setq start (point))
+ (insert str)
+ (unless (bolp) (newline))
+ (proof-fontify-region start (point)))))
+
(defun proof-display-and-keep-buffer (buffer &optional pos)
"Display BUFFER and mark window according to `proof-dont-switch-windows'.
If optional POS is present, will set point to POS.