aboutsummaryrefslogtreecommitdiffhomepage
path: root/lego.el
diff options
context:
space:
mode:
authorGravatar Dilip Sequiera <da+pg-djs@inf.ed.ac.uk>1996-12-03 13:57:01 +0000
committerGravatar Dilip Sequiera <da+pg-djs@inf.ed.ac.uk>1996-12-03 13:57:01 +0000
commit310560440b367385a37ad8a6a32f7b07e4637588 (patch)
tree3711b98b14e8f39ee7f9589f31365c9fa04a7684 /lego.el
parent4699c4b427eb4e27d86d46dfdcffce9da18bc5a2 (diff)
A few small fixes to deal with performance problems.
Diffstat (limited to 'lego.el')
-rw-r--r--lego.el30
1 files changed, 16 insertions, 14 deletions
diff --git a/lego.el b/lego.el
index 27d298c3..4a8fdd8f 100644
--- a/lego.el
+++ b/lego.el
@@ -9,6 +9,9 @@
;; James McKinna, Mark Ruys, Martin Steffen, Perdita Stevens
(require 'pbp)
+(require 'easymenu)
+(require 'font-lock)
+(require 'outline)
; Configuration
@@ -27,6 +30,9 @@
(defconst lego-pretty-on "Configure PrettyOn;"
"Command to enable pretty printing of the LEGO process.")
+(defconst lego-annotate-on "Configure AnnotateOn;"
+ "Command to enable pretty printing of the LEGO process.")
+
(defconst lego-pretty-set-width "Configure PrettyWidth %s;"
"Command to adjust the linewidth for pretty printing of the LEGO
process.")
@@ -101,7 +107,7 @@
(defvar lego-shell-working-dir ""
"The working directory of the lego shell")
-(defvar lego-shell-prompt-pattern "^\\(Lego> *\\)+"
+(defvar lego-shell-prompt-pattern "^\\(Lego>\\s-*\\)+"
"*The prompt pattern for the inferion shell running lego.")
(defvar lego-shell-abort-goal-regexp "KillRef: ok, not in proof state"
@@ -464,7 +470,8 @@
(cond (lego-pretty-p
(setq lego-shell-current-line-width nil)
(accept-process-output (get-process proof-shell-process-name))
- (proof-simple-send lego-pretty-on t))))
+ (proof-simple-send lego-pretty-on t)
+ (proof-simple-send lego-annotate-on t))))
(defun lego-shell-pre-shell-start ()
(setq proof-shell-prog-name lego-shell-prog-name)
@@ -474,7 +481,7 @@
(setq proof-shell-mode-is 'lego-shell-mode)
(setq proof-shell-abort-goal-regexp lego-shell-abort-goal-regexp)
(setq proof-shell-proof-completed-regexp lego-shell-proof-completed-regexp)
- (setq proof-shell-change-goal "Next %s")
+ (setq proof-shell-change-goal "Next %s;")
(setq proof-error-regexp lego-error-regexp)
(setq pbp-regexp-noise-goals-buffer "Discharge\\.\\. ")
(setq pbp-assumption-regexp lego-id)
@@ -576,18 +583,14 @@
("lego" . lego-tags))
tag-table-alist)))
-;; font lock hacks
+ (setq font-lock-keywords lego-font-lock-keywords-1)
- (font-lock-mode)
(remove-hook 'font-lock-after-fontify-buffer-hook 'lego-zap-commas-buffer t)
(add-hook 'font-lock-after-fontify-buffer-hook 'lego-zap-commas-buffer nil t)
-
(remove-hook 'font-lock-mode-hook 'lego-fixup-change t)
(add-hook 'font-lock-mode-hook 'lego-fixup-change nil t)
- ;; if we don't have the following, zap-commas fails to work.
-
- (setq font-lock-always-fontify-immediately t)
+ (font-lock-mode)
)
@@ -611,8 +614,10 @@
(easy-menu-add lego-mode-menu lego-mode-map)
;; font-lock
- (setq font-lock-keywords lego-font-lock-keywords-1)
- (font-lock-fontify-buffer)
+
+ ;; if we don't have the following, zap-commas fails to work.
+
+ (setq font-lock-always-fontify-immediately t)
;; insert standard header and footer in fresh buffers
@@ -624,9 +629,6 @@
))))
-
-
-
(defun lego-shell-mode-config ()
(lego-common-config)