diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2002-09-04 17:22:14 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2002-09-04 17:22:14 +0000 |
commit | 00e658c86b729b5b6d442557dcd60e2512591fb5 (patch) | |
tree | 21d050f3bf27335c8b16a3d1536ed4e571301f8d /generic | |
parent | cbbe19911ca15dd6466e91d6fb7c135e6e32c393 (diff) |
Begin adding code for thms buffer
Diffstat (limited to 'generic')
-rw-r--r-- | generic/pg-response.el | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/generic/pg-response.el b/generic/pg-response.el index 1f0af83a..3de3ae3c 100644 --- a/generic/pg-response.el +++ b/generic/pg-response.el @@ -7,15 +7,18 @@ ;; ;; $Id$ ;; +;; This mode is used for the response buffer proper, and +;; also the trace and theorems buffer. + ;; A sub-module of proof-shell; assumes proof-script loaded. (require 'pg-assoc) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Response buffer mode ;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (eval-and-compile (define-derived-mode proof-response-mode proof-universal-keys-only-mode @@ -101,10 +104,7 @@ Internal variable, setting this will have no effect!") ;; Displaying in the response buffer ;; -;; ;; Flag and function to keep response buffer tidy. -;; -;; (defvar pg-response-erase-flag nil "Indicates that the response buffer should be cleared before next message.") @@ -302,6 +302,32 @@ and start at the first error." (set-buffer-modified-p nil)))) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; +;; Theorems buffer +;; +;; New in PG 3.5. +;; +;; Revives an old idea from Isamode: a buffer displaying a bunch +;; of theorem names. +;; + + +(defun pg-thms-buffer-clear () + "Clear the theorems buffer." + (with-current-buffer proof-thms-buffer + (goto-char (point-max)) + (newline) + (setq start (point)) + (insert str) + (unless (bolp) (newline)) + (proof-fontify-region start (point)) + (set-buffer-modified-p nil))) + + + + |