src/Pure/Thy/thy_info.ML
changeset 75904 6d9d9a395533
parent 74561 8e6c973003c8
child 76404 4de3d831ff4d
equal deleted inserted replaced
75903:dce94a1d18fd 75904:6d9d9a395533
    36 type presentation_context =
    36 type presentation_context =
    37   {options: Options.T, file_pos: Position.T, adjust_pos: Position.T -> Position.T,
    37   {options: Options.T, file_pos: Position.T, adjust_pos: Position.T -> Position.T,
    38     segments: Document_Output.segment list};
    38     segments: Document_Output.segment list};
    39 
    39 
    40 fun adjust_pos_properties (context: presentation_context) pos =
    40 fun adjust_pos_properties (context: presentation_context) pos =
    41   Position.offset_properties_of (#adjust_pos context pos) @ Position.id_properties_of pos;
    41   Position.offset_properties_of (#adjust_pos context pos) @
       
    42   filter (fn (a, _) => a = Markup.idN orelse a = Markup.fileN) (Position.get_props pos);
    42 
    43 
    43 structure Presentation = Theory_Data
    44 structure Presentation = Theory_Data
    44 (
    45 (
    45   type T = ((presentation_context -> theory -> unit) * stamp) list;
    46   type T = ((presentation_context -> theory -> unit) * stamp) list;
    46   val empty = [];
    47   val empty = [];