equal
deleted
inserted
replaced
241 properties_of pos @ value Markup.end_lineN (the_default 0 (line_of pos')); |
241 properties_of pos @ value Markup.end_lineN (the_default 0 (line_of pos')); |
242 |
242 |
243 |
243 |
244 (* thread data *) |
244 (* thread data *) |
245 |
245 |
246 val thread_data_var = Thread_Data.var () : T Thread_Data.var; |
246 val thread_data = of_properties o Thread_Position.get; |
247 fun thread_data () = the_default none (Thread_Data.get thread_data_var); |
247 fun setmp_thread_data pos = Thread_Position.setmp (properties_of pos); |
248 fun setmp_thread_data pos = Thread_Data.setmp thread_data_var (SOME pos); |
|
249 |
248 |
250 fun default pos = |
249 fun default pos = |
251 if pos = none then (false, thread_data ()) |
250 if pos = none then (false, thread_data ()) |
252 else (true, pos); |
251 else (true, pos); |
253 |
252 |