aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall1998-09-23 11:10:01 +0000
committerDavid Aspinall1998-09-23 11:10:01 +0000
commit19098248de1246017a8a750ee1fc5d4946c06f4c (patch)
tree78543d8d025072fd0be08eb4ed4735ae68e2c5c7
parenta98ccef4b507b74c0b8ec308b26fe3199ca6e1c6 (diff)
Changed customization group, added goal command, better docs
-rw-r--r--isa/isa.el39
1 files changed, 19 insertions, 20 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 4e4d4e6d..ad131be6 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -15,10 +15,6 @@
;;; ======== User settings for Isabelle ========
;;;
-(defgroup isabelle-settings nil
- "Customization of Isabelle specifics for proof mode."
- :group 'proof)
-
(defcustom isa-prog-name "/usr/lib/Isabelle98/bin/isabelle"
"*Name of program to run Isabelle."
:type 'file
@@ -55,6 +51,10 @@ no regular or easily discernable structure."
;;; ======== Configuration of generic modes ========
;;;
+;;; NB! Disadvantage of *not* shadowing variables is that user
+;;; cannot override them. It might be nice to override some
+;;; variables, which ones?
+
(defun isa-mode-config-set-variables
"Configure generic proof scripting mode variables for Isabelle."
(setq
@@ -69,11 +69,12 @@ no regular or easily discernable structure."
proof-save-with-hole-regexp isa-save-with-hole-regexp
proof-goal-with-hole-regexp isa-goal-with-hole-regexp
proof-commands-regexp (ids-to-regexp isa-keywords)
- ;; proof engine commands
- proof-prf-string "pr()"
- proof-kill-goal-command "Goal \"PROP no_goal_supplied\""
+ ;; proof engine commands (first three for menus, last for undo)
+ proof-prf-string "pr();"
proof-ctxt-string "the_context();"
proof-help-string "print version;"
+ proof-kill-goal-command "Goal \"PROP no_goal_supplied\";"
+ proof-goal-command-string "Goal \"%s\";"
;; command hooks
proof-goal-command-p 'isa-goal-command-p
proof-count-undos-fn 'isa-count-undos
@@ -144,35 +145,33 @@ to set outline heading regexp.")
;;; ---- end-outline
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; Derived modes - they're here 'cos they define keymaps 'n stuff ;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
+;;
+;; Define the derived modes
+;;
(define-derived-mode isa-shell-mode proof-shell-mode
- "isa-shell" "Inferior shell mode for isabelle shell"
+ "Isabelle shell" nil
(isa-shell-mode-config))
(define-derived-mode isa-pbp-mode pbp-mode
- "pbp" "Proof-by-pointing support for Isabelle"
+ "Isabelle proofstate" nil
(isa-pbp-mode-config))
-(define-derived-mode isa-proofgeneral-mode proof-mode
- "Isabelle" "Isabelle Proof General Mode"
+(define-derived-mode isa-proofscript-mode proof-mode
+ "Isabelle script" nil
(isa-mode-config))
-
-;; Automatically selecting theory mode or Proof General mode.
+;; Automatically selecting theory mode or Proof General script mode.
(defun isa-mode ()
- "Mode for Isabelle buffers: either isa-proofgeneral-mode or isa-thy-mode.
+ "Mode for Isabelle buffers: either isa-proofscript-mode or isa-thy-mode.
Files with extension .thy will be in isa-thy-mode, otherwise we choose
-isa-proofgeneral-mode."
+isa-proofscript-mode."
(interactive)
(cond
((string-match ".thy" (buffer-file-name))
(isa-thy-mode))
(t
- (isa-proofgeneral-mode))))
+ (isa-proofscript-mode))))
;; Next portion taken from isa-load.el
;; isa-load.el,v 3.8 1998/09/01