aboutsummaryrefslogtreecommitdiff
path: root/isa
diff options
context:
space:
mode:
authorDavid Aspinall1998-10-23 11:46:58 +0000
committerDavid Aspinall1998-10-23 11:46:58 +0000
commit261cc96a0f531e6b85821620856491abd858b82d (patch)
tree4d8136e9ee76f2f01135334b9a1157b539c11124 /isa
parent23b8469cd25624e050ec75d9807bad0aa31d0b7f (diff)
Added support for locking Isabelle .thy files blue.
Diffstat (limited to 'isa')
-rw-r--r--isa/isa.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 03413ad0..751d735a 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -140,12 +140,8 @@ no regular or easily discernable structure."
;; Theory loader output and verbose update() output.
"Reading \"\\(.*\\)\"\\|Not reading \"\\(.*\\)\""
(lambda (str)
- (let ((filename (or (match-string 1 str)
- (match-string 2 str))))
- (if (string-match "\\.ML$" filename)
- filename)
- ;; Ignore .thy files for now
- )))
+ (or (match-string 1 str)
+ (match-string 2 str))))
;; This is the output returned by a special command to
;; query Isabelle for outdated files.
proof-shell-retract-files-regexp
@@ -243,8 +239,13 @@ isa-proofscript-mode."
(interactive)
(cond
((string-match ".thy" (buffer-file-name))
- (thy-mode))
+ (thy-mode)
+ ;; Has this theory file been loaded by Isabelle?
+ ;; Colour it blue if so.
+ (and (member buffer-file-truename proof-included-files-list)
+ (proof-mark-buffer-atomic (current-buffer))))
(t
+ ;; Proof mode does this automatically.
(isa-proofscript-mode))))
;; Next portion taken from isa-load.el