src/Pure/PIDE/document.ML
changeset 67500 dfde99d59f6e
parent 67380 8bef51521f21
child 68184 6c693b2700b3
equal deleted inserted replaced
67499:bbb86f719d4b 67500:dfde99d59f6e
   129         (case Position.get_id (Position.thread_data ()) of
   129         (case Position.get_id (Position.thread_data ()) of
   130           NONE => I
   130           NONE => I
   131         | SOME id => Protocol_Message.command_positions_yxml id)
   131         | SOME id => Protocol_Message.command_positions_yxml id)
   132         |> error;
   132         |> error;
   133     val {name = (name, _), imports, ...} = header;
   133     val {name = (name, _), imports, ...} = header;
   134     val {name = (_, pos), imports = imports', keywords} = Thy_Header.read_tokens span;
   134     val {name = (_, pos), imports = imports', keywords} =
       
   135       Thy_Header.read_tokens Position.none span;
   135     val imports'' = (map #1 imports ~~ map #2 imports') handle ListPair.UnequalLengths => imports;
   136     val imports'' = (map #1 imports ~~ map #2 imports') handle ListPair.UnequalLengths => imports;
   136   in Thy_Header.make (name, pos) imports'' keywords end;
   137   in Thy_Header.make (name, pos) imports'' keywords end;
   137 
   138 
   138 fun get_perspective (Node {perspective, ...}) = perspective;
   139 fun get_perspective (Node {perspective, ...}) = perspective;
   139 
   140