src/Pure/Thy/thy_load.ML
changeset 48924 27d8ccd1906c
parent 48919 aaca64a7390c
child 48927 ef462b5558eb
equal deleted inserted replaced
48923:a2df77fcf1eb 48924:27d8ccd1906c
    66 
    66 
    67 fun read_files cmd dir (path, pos) =
    67 fun read_files cmd dir (path, pos) =
    68   let
    68   let
    69     fun make_file file =
    69     fun make_file file =
    70       let
    70       let
       
    71         val _ = Position.report pos (Isabelle_Markup.path (Path.implode file));
    71         val full_path = check_file dir file;
    72         val full_path = check_file dir file;
    72         val _ = Position.report pos (Isabelle_Markup.path (Path.implode full_path));
       
    73       in {src_path = file, text = File.read full_path, pos = Path.position full_path} end;
    73       in {src_path = file, text = File.read full_path, pos = Path.position full_path} end;
    74     val paths =
    74     val paths =
    75       (case Keyword.command_files cmd of
    75       (case Keyword.command_files cmd of
    76         [] => [path]
    76         [] => [path]
    77       | exts => map (fn ext => Path.ext ext path) exts);
    77       | exts => map (fn ext => Path.ext ext path) exts);