author | wenzelm |
Sat, 25 Jun 2011 17:17:49 +0200 | |
changeset 43547 | f3a8476285c6 |
parent 40133 | b61d52de66f0 |
child 43548 | f231a7594e54 |
permissions | -rw-r--r-- |
21642 | 1 |
(* Title: Pure/ProofGeneral/proof_general_emacs.ML |
2 |
Author: David Aspinall and Markus Wenzel |
|
3 |
||
4 |
Isabelle/Isar configuration for Emacs Proof General. |
|
26549 | 5 |
See also http://proofgeneral.inf.ed.ac.uk |
21642 | 6 |
*) |
7 |
||
8 |
signature PROOF_GENERAL = |
|
9 |
sig |
|
26549 | 10 |
val test_markupN: string |
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
11 |
val sendback: string -> Pretty.T list -> unit |
21642 | 12 |
val init: bool -> unit |
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
13 |
structure ThyLoad: sig val add_path: string -> unit end |
21642 | 14 |
end; |
15 |
||
16 |
structure ProofGeneral: PROOF_GENERAL = |
|
17 |
struct |
|
18 |
||
21945 | 19 |
|
21642 | 20 |
(* print modes *) |
21 |
||
22 |
val thm_depsN = "thm_deps"; (*meta-information about theorem deps*) |
|
26549 | 23 |
val test_markupN = "test_markup"; (*XML markup for everything*) |
24 |
||
29321
6b9ecb3a70ab
removed print mode "PGASCII" -- 7-bit ASCII communication now always enabled;
wenzelm
parents:
28426
diff
changeset
|
25 |
fun special ch = Symbol.SOH ^ ch; |
21642 | 26 |
|
27 |
||
29326 | 28 |
(* render markup *) |
21642 | 29 |
|
30 |
local |
|
31 |
||
29326 | 32 |
fun render_trees ts = fold render_tree ts |
33 |
and render_tree (XML.Text s) = Buffer.add s |
|
38228
ada3ab6b9085
simplified type XML.tree: embed Markup.T directly, avoid slightly odd triple;
wenzelm
parents:
37981
diff
changeset
|
34 |
| render_tree (XML.Elem ((name, props), ts)) = |
29326 | 35 |
let |
36 |
val (bg1, en1) = |
|
37 |
if name <> Markup.promptN andalso print_mode_active test_markupN |
|
38 |
then XML.output_markup (name, props) |
|
39 |
else Markup.no_output; |
|
40 |
val (bg2, en2) = |
|
30292
a3bb22493f11
render_tree: suppress markup only for empty body (of status messages, cf. da275b7809bd) in order to recover hilite;
wenzelm
parents:
29349
diff
changeset
|
41 |
if null ts then Markup.no_output |
29326 | 42 |
else if name = Markup.stateN then (special "O" ^ "\n", "\n" ^ special "P") |
43 |
else if name = Markup.sendbackN then (special "W", special "X") |
|
43547
f3a8476285c6
clarified Binding.pretty/print: no quotes, only markup -- Binding.str_of is rendered obsolete;
wenzelm
parents:
40133
diff
changeset
|
44 |
else if name = Markup.bindingN then (special "F", special "A") |
29326 | 45 |
else if name = Markup.hiliteN then (special "0", special "1") |
46 |
else if name = Markup.tclassN then (special "B", special "A") |
|
47 |
else if name = Markup.tfreeN then (special "C", special "A") |
|
48 |
else if name = Markup.tvarN then (special "D", special "A") |
|
49 |
else if name = Markup.freeN then (special "E", special "A") |
|
50 |
else if name = Markup.boundN then (special "F", special "A") |
|
51 |
else if name = Markup.varN then (special "G", special "A") |
|
52 |
else if name = Markup.skolemN then (special "H", special "A") |
|
53 |
else Markup.no_output; |
|
54 |
in |
|
55 |
Buffer.add bg1 #> |
|
56 |
Buffer.add bg2 #> |
|
57 |
render_trees ts #> |
|
58 |
Buffer.add en2 #> |
|
59 |
Buffer.add en1 |
|
60 |
end; |
|
21642 | 61 |
|
62 |
in |
|
63 |
||
29326 | 64 |
fun render text = |
65 |
Buffer.content (render_trees (YXML.parse_body text) Buffer.empty); |
|
21642 | 66 |
|
67 |
end; |
|
68 |
||
69 |
||
29326 | 70 |
(* messages *) |
71 |
||
72 |
fun message bg en prfx text = |
|
73 |
(case render text of |
|
74 |
"" => () |
|
39733
6d373e9dcb9d
renamed raw output primitives to emphasize their meaning -- not to be used in user-space;
wenzelm
parents:
39513
diff
changeset
|
75 |
| s => Output.raw_writeln (enclose bg en (prefix_lines prfx s))); |
23641
d6f9d3acffaa
toplevel prompt/print_state: proper markup, removed hooks;
wenzelm
parents:
23621
diff
changeset
|
76 |
|
29326 | 77 |
fun setup_messages () = |
40133
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
78 |
(Output.Private_Hooks.writeln_fn := message "" "" ""; |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
79 |
Output.Private_Hooks.status_fn := (fn _ => ()); |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
80 |
Output.Private_Hooks.report_fn := (fn _ => ()); |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
81 |
Output.Private_Hooks.urgent_message_fn := message (special "I") (special "J") ""; |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
82 |
Output.Private_Hooks.tracing_fn := message (special "I" ^ special "V") (special "J") ""; |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
83 |
Output.Private_Hooks.warning_fn := message (special "K") (special "L") "### "; |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
84 |
Output.Private_Hooks.error_fn := message (special "M") (special "N") "*** "; |
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
85 |
Output.Private_Hooks.prompt_fn := (fn s => Output.raw_stdout (render s ^ special "S"))); |
29326 | 86 |
|
87 |
fun panic s = |
|
88 |
(message (special "M") (special "N") "!!! " ("## SYSTEM EXIT ##\n" ^ s); exit 1); |
|
23641
d6f9d3acffaa
toplevel prompt/print_state: proper markup, removed hooks;
wenzelm
parents:
23621
diff
changeset
|
89 |
|
d6f9d3acffaa
toplevel prompt/print_state: proper markup, removed hooks;
wenzelm
parents:
23621
diff
changeset
|
90 |
|
29326 | 91 |
(* notification *) |
21642 | 92 |
|
29326 | 93 |
val emacs_notify = message (special "I") (special "J") ""; |
21642 | 94 |
|
95 |
fun tell_clear_goals () = |
|
21940 | 96 |
emacs_notify "Proof General, please clear the goals buffer."; |
21642 | 97 |
|
98 |
fun tell_clear_response () = |
|
21940 | 99 |
emacs_notify "Proof General, please clear the response buffer."; |
21642 | 100 |
|
101 |
fun tell_file_loaded path = |
|
21940 | 102 |
emacs_notify ("Proof General, this file is loaded: " ^ quote (File.platform_path path)); |
21642 | 103 |
|
104 |
fun tell_file_retracted path = |
|
21940 | 105 |
emacs_notify ("Proof General, you can unlock the file " ^ quote (File.platform_path path)); |
21642 | 106 |
|
24289 | 107 |
fun sendback heading prts = |
108 |
Pretty.writeln (Pretty.big_list heading [Pretty.markup Markup.sendback prts]); |
|
109 |
||
21642 | 110 |
|
111 |
(* theory loader actions *) |
|
112 |
||
113 |
local |
|
114 |
||
115 |
fun trace_action action name = |
|
37216
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
36953
diff
changeset
|
116 |
if action = Thy_Info.Update then |
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
36953
diff
changeset
|
117 |
List.app tell_file_loaded (Thy_Info.loaded_files name) |
37981
9a15982f41fe
theory loader: removed obsolete touch/outdate operations (require_thy no longer changes the database implicitly);
wenzelm
parents:
37977
diff
changeset
|
118 |
else if action = Thy_Info.Remove then |
37216
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
36953
diff
changeset
|
119 |
List.app tell_file_retracted (Thy_Info.loaded_files name) |
21642 | 120 |
else (); |
121 |
||
122 |
in |
|
37216
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
36953
diff
changeset
|
123 |
fun setup_thy_loader () = Thy_Info.add_hook trace_action; |
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
36953
diff
changeset
|
124 |
fun sync_thy_loader () = List.app (trace_action Thy_Info.Update) (Thy_Info.get_names ()); |
21642 | 125 |
end; |
126 |
||
127 |
||
21948 | 128 |
(* get informed about files *) |
21642 | 129 |
|
25442 | 130 |
(*liberal low-level version*) |
131 |
val thy_name = perhaps (try (unsuffix ".thy")) o List.last o space_explode "/"; |
|
132 |
||
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
133 |
val inform_file_retracted = Thy_Info.kill_thy o thy_name; |
25442 | 134 |
|
27577
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
135 |
fun inform_file_processed file = |
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
136 |
let |
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
137 |
val name = thy_name file; |
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
138 |
val _ = name = "" andalso error ("Bad file name: " ^ quote file); |
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
139 |
val _ = |
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
140 |
Thy_Info.register_thy (Toplevel.end_theory Position.none (Isar.state ())) |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
141 |
handle ERROR msg => |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
142 |
(warning (cat_lines ["Failed to register theory: " ^ quote name, msg]); |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
143 |
tell_file_retracted (Thy_Header.thy_path name)) |
29349 | 144 |
val _ = Isar.init (); |
27577
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
145 |
in () end; |
21642 | 146 |
|
147 |
||
148 |
(* restart top-level loop (keeps most state information) *) |
|
149 |
||
40132
7ee65dbffa31
renamed Output.priority to Output.urgent_message to emphasize its special role more clearly;
wenzelm
parents:
39733
diff
changeset
|
150 |
val welcome = Output.urgent_message o Session.welcome; |
21642 | 151 |
|
152 |
fun restart () = |
|
21940 | 153 |
(sync_thy_loader (); |
154 |
tell_clear_goals (); |
|
155 |
tell_clear_response (); |
|
29349 | 156 |
Isar.init (); |
27577
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
157 |
welcome ()); |
21642 | 158 |
|
159 |
||
160 |
(* theorem dependency output *) |
|
161 |
||
162 |
local |
|
163 |
||
164 |
val spaces_quote = space_implode " " o map quote; |
|
165 |
||
166 |
fun thm_deps_message (thms, deps) = |
|
21948 | 167 |
emacs_notify ("Proof General, theorem dependencies of " ^ thms ^ " are " ^ deps); |
21642 | 168 |
|
28096
046418f64474
theorem dependency output: Toplevel.add_hook, ProofGeneralPgip.new_thms_deps;
wenzelm
parents:
28020
diff
changeset
|
169 |
in |
046418f64474
theorem dependency output: Toplevel.add_hook, ProofGeneralPgip.new_thms_deps;
wenzelm
parents:
28020
diff
changeset
|
170 |
|
28103
b79e61861f0f
simplified Toplevel.add_hook: cover successful transactions only;
wenzelm
parents:
28100
diff
changeset
|
171 |
fun setup_present_hook () = Toplevel.add_hook (fn _ => fn state => fn state' => |
28106 | 172 |
if print_mode_active thm_depsN andalso |
173 |
can Toplevel.theory_of state andalso Toplevel.is_theory state' |
|
174 |
then |
|
28100
7650d5e0f8fb
refined theorem dependency output: previous state needs to contain a theory (not empty toplevel);
wenzelm
parents:
28096
diff
changeset
|
175 |
let val (names, deps) = |
7650d5e0f8fb
refined theorem dependency output: previous state needs to contain a theory (not empty toplevel);
wenzelm
parents:
28096
diff
changeset
|
176 |
ProofGeneralPgip.new_thms_deps (Toplevel.theory_of state) (Toplevel.theory_of state') |
7650d5e0f8fb
refined theorem dependency output: previous state needs to contain a theory (not empty toplevel);
wenzelm
parents:
28096
diff
changeset
|
177 |
in |
21968 | 178 |
if null names orelse null deps then () |
179 |
else thm_deps_message (spaces_quote names, spaces_quote deps) |
|
180 |
end |
|
28096
046418f64474
theorem dependency output: Toplevel.add_hook, ProofGeneralPgip.new_thms_deps;
wenzelm
parents:
28020
diff
changeset
|
181 |
else ()); |
21642 | 182 |
|
183 |
end; |
|
184 |
||
185 |
||
186 |
(* additional outer syntax for Isar *) |
|
187 |
||
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
188 |
val _ = |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
189 |
Outer_Syntax.improper_command "ProofGeneral.pr" "print state (internal)" Keyword.diag |
33872 | 190 |
(Scan.succeed (Toplevel.no_timing o Toplevel.keep (fn state => |
191 |
if Toplevel.is_toplevel state orelse Toplevel.is_theory state then tell_clear_goals () |
|
192 |
else (Toplevel.quiet := false; Toplevel.print_state true state)))); |
|
193 |
||
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
194 |
val _ = (*undo without output -- historical*) |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
195 |
Outer_Syntax.improper_command "ProofGeneral.undo" "(internal)" Keyword.control |
27535 | 196 |
(Scan.succeed (Toplevel.no_timing o Toplevel.imperative (fn () => Isar.undo 1))); |
21642 | 197 |
|
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
198 |
val _ = |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
199 |
Outer_Syntax.improper_command "ProofGeneral.restart" "(internal)" Keyword.control |
36950 | 200 |
(Parse.opt_unit >> (Toplevel.no_timing oo K (Toplevel.imperative restart))); |
21642 | 201 |
|
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
202 |
val _ = |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
203 |
Outer_Syntax.improper_command "ProofGeneral.kill_proof" "(internal)" Keyword.control |
27532 | 204 |
(Scan.succeed (Toplevel.no_timing o |
205 |
Toplevel.imperative (fn () => (Isar.kill_proof (); tell_clear_goals ())))); |
|
206 |
||
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
207 |
val _ = |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
208 |
Outer_Syntax.improper_command "ProofGeneral.inform_file_processed" "(internal)" Keyword.control |
36950 | 209 |
(Parse.name >> (fn file => |
27577
7c7a9a343ca5
proper_inform_file_processed: new implementation based on global Isar state (cf. isar.ML);
wenzelm
parents:
27537
diff
changeset
|
210 |
Toplevel.no_timing o Toplevel.imperative (fn () => inform_file_processed file))); |
21642 | 211 |
|
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
212 |
val _ = |
36953
2af1ad9aa1a3
renamed structure OuterSyntax to Outer_Syntax, keeping the old name as alias for some time;
wenzelm
parents:
36950
diff
changeset
|
213 |
Outer_Syntax.improper_command "ProofGeneral.inform_file_retracted" "(internal)" Keyword.control |
36950 | 214 |
(Parse.name >> (Toplevel.no_timing oo |
21642 | 215 |
(fn file => Toplevel.imperative (fn () => inform_file_retracted file)))); |
216 |
||
217 |
||
218 |
(* init *) |
|
219 |
||
32738 | 220 |
val initialized = Unsynchronized.ref false; |
21642 | 221 |
|
22699
938c1011ac94
removed unused Output.panic hook -- internal to PG wrapper;
wenzelm
parents:
22678
diff
changeset
|
222 |
fun init false = panic "No Proof General interface support for Isabelle/classic mode." |
21940 | 223 |
| init true = |
38798
89f273ab1d42
expanded some aliases from structure Unsynchronized;
wenzelm
parents:
38253
diff
changeset
|
224 |
(if ! initialized then () |
89f273ab1d42
expanded some aliases from structure Unsynchronized;
wenzelm
parents:
38253
diff
changeset
|
225 |
else |
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
226 |
(Output.add_mode Symbol.xsymbolsN Symbol.output Output.default_escape; |
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
227 |
Output.add_mode ProofGeneralPgip.proof_general_emacsN |
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
228 |
Output.default_output Output.default_escape; |
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
229 |
Markup.add_mode ProofGeneralPgip.proof_general_emacsN YXML.output_markup; |
38833
9ff5ce3580c1
eliminated obsolete Output.no_warnings, where no warnings were produced anyway;
wenzelm
parents:
38798
diff
changeset
|
230 |
setup_messages (); |
40133
b61d52de66f0
more explicit indication of Output.Private_Hooks (still public to accomodate clones of Proof General for now);
wenzelm
parents:
40132
diff
changeset
|
231 |
ProofGeneralPgip.pgip_channel_emacs (! Output.Private_Hooks.urgent_message_fn); |
38833
9ff5ce3580c1
eliminated obsolete Output.no_warnings, where no warnings were produced anyway;
wenzelm
parents:
38798
diff
changeset
|
232 |
setup_thy_loader (); |
9ff5ce3580c1
eliminated obsolete Output.no_warnings, where no warnings were produced anyway;
wenzelm
parents:
38798
diff
changeset
|
233 |
setup_present_hook (); |
9ff5ce3580c1
eliminated obsolete Output.no_warnings, where no warnings were produced anyway;
wenzelm
parents:
38798
diff
changeset
|
234 |
initialized := true); |
38798
89f273ab1d42
expanded some aliases from structure Unsynchronized;
wenzelm
parents:
38253
diff
changeset
|
235 |
sync_thy_loader (); |
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38833
diff
changeset
|
236 |
Unsynchronized.change print_mode (update (op =) ProofGeneralPgip.proof_general_emacsN); |
37239 | 237 |
Secure.PG_setup (); |
38253
3d4e521014f7
Isabelle_Process: separate input fifo for commands (still using the old tty protocol);
wenzelm
parents:
38236
diff
changeset
|
238 |
Isar.toplevel_loop TextIO.stdIn |
3d4e521014f7
Isabelle_Process: separate input fifo for commands (still using the old tty protocol);
wenzelm
parents:
38236
diff
changeset
|
239 |
{init = true, welcome = true, sync = true, secure = Secure.is_secure ()}); |
21642 | 240 |
|
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
241 |
|
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
242 |
(* fake old ThyLoad -- with new semantics *) |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
243 |
|
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
244 |
structure ThyLoad = |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
245 |
struct |
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
246 |
val add_path = Thy_Load.set_master_path o Path.explode; |
21642 | 247 |
end; |
37977
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
248 |
|
3ceccd415145
simplified/clarified theory loader: more explicit task management, kill old versions at start, commit results only in the very end, non-optional master dependency, do not store text in deps;
wenzelm
parents:
37954
diff
changeset
|
249 |
end; |