diff options
| author | David Aspinall | 2002-08-07 08:34:23 +0000 |
|---|---|---|
| committer | David Aspinall | 2002-08-07 08:34:23 +0000 |
| commit | c79b21367b4c3d2b6eb10ef3b92e093a82785ce2 (patch) | |
| tree | f8377c4de34b783e990e1b4238747929331d40a2 /plastic | |
| parent | 85d74c61c9ec3d2ea1c89eafdd38bfd726f25abc (diff) | |
Update from PC, sent 5.8.02
Diffstat (limited to 'plastic')
| -rw-r--r-- | plastic/plastic-syntax.el | 5 | ||||
| -rw-r--r-- | plastic/plastic.el | 39 |
2 files changed, 24 insertions, 20 deletions
diff --git a/plastic/plastic-syntax.el b/plastic/plastic-syntax.el index 2bfead81..6c71aa34 100644 --- a/plastic/plastic-syntax.el +++ b/plastic/plastic-syntax.el @@ -1,7 +1,7 @@ ;; plastic-syntax.el - Syntax of Plastic ;; Author: Paul Callaghan <P.C.Callaghan@durham.ac.uk> ;; Maintainer: <author> -;; $Id$ +;; plastic-syntax.el,v 6.0 2001/09/03 12:11:56 da Exp ;; adapted from the following, by Paul Callaghan ;; ;; lego-syntax.el Syntax of LEGO @@ -28,7 +28,8 @@ "impE" "impI" "Induction" "Inductive" "Invert" "Init" "intros" "Intros" "Module" "Next" "Normal" "notE" "notI" "orE" "orIL" "orIR" "qnify" "Qnify" - "Qrepl" "Record" "Refine" "Repeat" "Try" "Unfreeze")) + "Qrepl" "Record" "Refine" "Repeat" "Return" "ReturnAll" + "Try" "Unfreeze")) "Subset of Plastic keywords and tacticals which are terminated by a \?;") (defconst plastic-keywords diff --git a/plastic/plastic.el b/plastic/plastic.el index 35a6c18c..9992fc2e 100644 --- a/plastic/plastic.el +++ b/plastic/plastic.el @@ -1,7 +1,7 @@ ;; plastic.el - Major mode for Plastic proof assistant ;; Author: Paul Callaghan <P.C.Callaghan@durham.ac.uk> ;; Maintainer: <author> -;; $Id$ +;; plastic.el,v 6.2 2002/07/19 10:38:48 da Exp ;; adapted from the following, by Paul Callaghan ;; ;; lego.el Major mode for LEGO proof assistants @@ -253,12 +253,13 @@ Given is the first SPAN which needs to be undone." (string-match "^\\s-*test" string) (string-match "^\\s-*\\$" string) (string-match "^\\s-*#" string)) - (if (yes-or-no-p-dialog-box - (concat "Can't Undo imports yet\n" - "You have to exit prover for this\n" - "Continue with Exit?")) - (proof-shell-exit) - nil) ) ;; see if the user wants to quit. + + (popup-dialog-box + (list (concat "Can't Undo imports yet\n" + "You have to exit Plastic for this\n") + ["ok, I'll do this" (lambda () t) t])) + (return) + ) ;; warn the user that undo of imports not yet working. (t (incf spans)) ) (setq span (next-span span 'type)) @@ -290,11 +291,11 @@ Given is the first SPAN which needs to be undone." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (proof-defshortcut plastic-Intros - (concat plastic-lit-string " Intros ") ?I) -(proof-defshortcut plastic-intros - (concat plastic-lit-string " intros ") ?i) + (concat plastic-lit-string "Intros ") ?i) (proof-defshortcut plastic-Refine - (concat plastic-lit-string " Refine ") ?i) + (concat plastic-lit-string "Refine ") ?r) +(proof-defshortcut plastic-ReturnAll + (concat plastic-lit-string "ReturnAll ") ?u) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -612,6 +613,7 @@ We assume that module identifiers coincide with file names." (defun plastic-minibuf-cmd (cmd) "do minibuffer cmd then undo it, if error-free." + (print "hello") (plastic-reset-error) (interactive (list (read-string "Command: " nil 'proof-minibuffer-history))) @@ -663,21 +665,22 @@ We assume that module identifiers coincide with file names." (define-key plastic-keymap ?s 'plastic-small-bar) (define-key plastic-keymap ?l 'plastic-large-bar) -(define-key plastic-keymap ?a 'plastic-all-ctxt) -(define-key plastic-keymap [(control c) (control v)] 'plastic-minibuf) -(define-key plastic-keymap [(control c) (control o)] 'plastic-synchro) -(define-key plastic-keymap [(control c) (control s)] 'plastic-show-shell) - +(define-key plastic-keymap ?c 'plastic-all-ctxt) +(define-key plastic-keymap ?v 'plastic-minibuf) +(define-key plastic-keymap ?o 'plastic-synchro) +(define-key plastic-keymap ?p 'plastic-show-shell) ;; original end. ;;;;;;;;;;;;;;;;; -;; hacky overriding of the toolbar command +;; hacky overriding of the toolbar command and C-c C-v action ;; my version handles literate characters. ;; (should do better for long-term though) -(defalias 'proof-toolbar-command 'plastic-minibuf-cmd) +(defalias 'proof-toolbar-command 'plastic-minibuf) +(defalias 'proof-minibuffer-cmd 'plastic-minibuf) + ;; the latter doesn't seem to work (pcc, 05aug02) ;;; |
