aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall1998-10-27 17:58:35 +0000
committerDavid Aspinall1998-10-27 17:58:35 +0000
commitdc7f97216e37f99df0ea6d3faa22d546dcfed610 (patch)
tree29e6faf46f20b673fec94802f63b049e91efa8f2
parent4eb7fd41ffad37e34c654b150395c30c601521d3 (diff)
Mods for cleaner byte compile
-rw-r--r--isa/isa.el70
1 files changed, 44 insertions, 26 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 3c1d4ad8..8fcdd46d 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -11,11 +11,24 @@
(setq proof-tags-support nil) ; we don't want it, no isatags prog.
(require 'proof)
-
(require 'isa-syntax)
;; FIXME: outline should be autoloaded
-(require 'outline)
+(require 'outline)
+
+;; To make byte compiler be quiet.
+(eval-when-compile
+ (require 'proof-shell)
+ (require 'proof-script)
+ (cond ((fboundp 'make-extent) (require 'span-extent))
+ ((fboundp 'make-overlay) (require 'span-overlay))))
+
+
+;;; variable: proof-analyse-using-stack
+;;; proof-locked-region-empty-p, proof-shell-insert, pbp-mode,
+;;; proof-mark-buffer-atomic, proof-shell-invisible-command,
+;;; prev-span, span-property, next-span, proof-unprocessed-begin,
+;;; proof-config-done, proof-shell-config-done
;;;
@@ -48,6 +61,29 @@ no regular or easily discernable structure."
;;; ======== Configuration of generic modes ========
;;;
+;; ===== outline mode
+
+;;; FIXME: test and add more things here
+(defvar isa-outline-regexp
+ (ids-to-regexp '("goal" "Goal" "prove_goal"))
+ "Outline regexp for Isabelle ML files")
+
+;;; End of a command needs parsing to find, so this is approximate.
+(defvar isa-outline-heading-end-regexp ";[ \t\n]*")
+
+(defconst isa-goal-regexp "^[ \t]*[0-9]+\\. "
+ "Regexp to match subgoal headings.
+Used by proof mode to parse proofstate output, and also
+to set outline heading regexp.")
+
+;;
+(defvar isa-shell-outline-regexp isa-goal-regexp)
+(defvar isa-shell-outline-heading-end-regexp isa-goal-regexp)
+
+;;; ---- end-outline
+
+
+
;;; NB! Disadvantage of *not* shadowing variables is that user
;;; cannot override them. It might be nice to override some
;;; variables, which ones?
@@ -203,27 +239,6 @@ proof-shell-retract-files-regexp."
proof-included-files-list))
-;; ===== outline mode
-
-;;; FIXME: test and add more things here
-(defvar isa-outline-regexp
- (ids-to-regexp '("goal" "Goal" "prove_goal"))
- "Outline regexp for Isabelle ML files")
-
-;;; End of a command needs parsing to find, so this is approximate.
-(defvar isa-outline-heading-end-regexp ";[ \t\n]*")
-
-(defconst isa-goal-regexp "^[ \t]*[0-9]+\\. "
- "Regexp to match subgoal headings.
-Used by proof mode to parse proofstate output, and also
-to set outline heading regexp.")
-
-;;
-(defvar isa-shell-outline-regexp isa-goal-regexp)
-(defvar isa-shell-outline-heading-end-regexp isa-goal-regexp)
-
-;;; ---- end-outline
-
;;
;; Define the derived modes
@@ -252,6 +267,9 @@ isa-proofscript-mode."
(and (buffer-file-name)
(string-match ".thy" (buffer-file-name)))
(thy-mode)
+ ;; Hack for splash screen
+ (if (memq 'proof-splash-timeout-waiter proof-mode-hook)
+ (proof-splash-timeout-waiter))
;; Has this theory file already been loaded by Isabelle?
;; Colour it blue if so.
(and (member buffer-file-truename proof-included-files-list)
@@ -278,6 +296,9 @@ isa-proofscript-mode."
(format isa-usethy-notopml-command
(file-name-sans-extension file))))
+(defconst isa-retract-file-command "ProofGeneral.retract_file \"%s\";"
+ "Command sent to Isabelle for forgetting")
+
(defun isa-retract-thy-file (file)
"Retract the theory file FILE. If interactive, use buffer-file-name."
(interactive (list buffer-file-name))
@@ -356,9 +377,6 @@ isa-proofscript-mode."
;; backwards in isa-find-and-forget, rather than forwards as
;; the old code below does.
-(defconst isa-retract-file-command "ProofGeneral.retract_file \"%s\";"
- "Command sent to Isabelle for forgetting")
-
(defun isa-find-and-forget (span)
"Return a command to be used to forget SPAN."
(save-excursion