equal
deleted
inserted
replaced
7 signature CONTEXT_POSITION = |
7 signature CONTEXT_POSITION = |
8 sig |
8 sig |
9 val is_visible: Proof.context -> bool |
9 val is_visible: Proof.context -> bool |
10 val set_visible: bool -> Proof.context -> Proof.context |
10 val set_visible: bool -> Proof.context -> Proof.context |
11 val restore_visible: Proof.context -> Proof.context -> Proof.context |
11 val restore_visible: Proof.context -> Proof.context -> Proof.context |
|
12 val report_text: Proof.context -> Markup.T -> Position.T -> string -> unit |
12 val report: Proof.context -> Markup.T -> Position.T -> unit |
13 val report: Proof.context -> Markup.T -> Position.T -> unit |
13 end; |
14 end; |
14 |
15 |
15 structure Context_Position: CONTEXT_POSITION = |
16 structure Context_Position: CONTEXT_POSITION = |
16 struct |
17 struct |
23 |
24 |
24 val is_visible = Data.get; |
25 val is_visible = Data.get; |
25 val set_visible = Data.put; |
26 val set_visible = Data.put; |
26 val restore_visible = set_visible o is_visible; |
27 val restore_visible = set_visible o is_visible; |
27 |
28 |
28 fun report ctxt markup pos = |
29 fun report_text ctxt markup pos txt = |
29 if is_visible ctxt then Position.report markup pos else (); |
30 if is_visible ctxt then Position.report_text markup pos txt else (); |
|
31 |
|
32 fun report ctxt markup pos = report_text ctxt markup pos ""; |
30 |
33 |
31 end; |
34 end; |