diff options
| author | David Aspinall | 1999-11-16 16:05:51 +0000 |
|---|---|---|
| committer | David Aspinall | 1999-11-16 16:05:51 +0000 |
| commit | 8c8850eb2df838e34ff3ed9fab40d2d6a76489d6 (patch) | |
| tree | f58044eb4d67176e4418f65b23c12b154a3188af /etc/junk.el | |
| parent | 8247e2f5be2e0da25e49f676ebc2ab461b131b98 (diff) | |
Updates
Diffstat (limited to 'etc/junk.el')
| -rw-r--r-- | etc/junk.el | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/etc/junk.el b/etc/junk.el index 3f66f664..dadf1bb6 100644 --- a/etc/junk.el +++ b/etc/junk.el @@ -83,3 +83,58 @@ arrive." +;; was is proof-shell, never used. +(defun proof-shell-strip-eager-annotation-specials (string) + "Strip special eager annotations from STRING, returning cleaned up string. +The input STRING should be annotated with expressions matching +proof-shell-eager-annotation-start and eager-annotation-end. +We only strip specials from the annotations." + (let* ((mstart (progn + (string-match proof-shell-eager-annotation-start string) + (match-end 0))) + (mend (string-match proof-shell-eager-annotation-end string)) + (msg (substring string mstart mend)) + (strtan (substring string 0 mstart)) + (endan (substring string mend))) + (concat + (proof-shell-strip-special-annotations strtan) + msg + (proof-shell-strip-special-annotations endan)))) + + + +;; 2. proof-find-and-forget-fn +;; +;; This calculates undo operations outwith a proof. If we retract +;; before a "Goal" command, proof-kill-goal-command is sent, followed +;; by whatever is calculated by this function. +;; +;; Isabelle has no concept of a linear context, and you can happily +;; redeclare values in ML. So forgetting back to the declaration of a +;; particular something makes no real sense. +;; The function is given a trivial implementation in this case. +;; +;; Find LEGO or Coq's implementation of this function to see how to +;; write it for proof assistants that can do this. + + + +;; FIXME: this is supposed to be a handy way of swapping +;; between goals and response buffer. Never mind. +;(defun proof-bury-buffer-after (buf) +; (if (and (string-match "XEmacs" emacs-version) ; XEmacs speciality +; (buffer-live-p buf)) +; (bury-buffer (current-buffer) buf) +; (bury-buffer))) + +;(defun proof-bury-buffer-after-goals () +; (interactive) +; (proof-bury-buffer-after proof-goals-buffer)) + + + +;(defun proof-bury-buffer-after-response () +; (interactive) +; (if proof-response-buffer +; (with-current-buffer proof-response-buffer +; (proof-bury-buffer-after proof-goals-buffer)))) |
