Skip to content

Commit

Permalink
Reinstate (short!) message about changed loadPath when hol begins
Browse files Browse the repository at this point in the history
(This fixes Moscow ML interactive behaviour to be the same also.)
  • Loading branch information
mn200 committed May 23, 2019
1 parent ade4d37 commit 1354fce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion std.prelude
Expand Up @@ -187,7 +187,16 @@ in
val _ = loadPath := tl (!loadPath)
end;

val _ = ReadHMF.extend_path_with_includes {verbosity = 1, lpref = loadPath};
val _ = let
val lpsize0 = length (!loadPath)
in
ReadHMF.extend_path_with_includes {verbosity = 0, lpref = loadPath};
if length (!loadPath) <> lpsize0 then
print ("** Load path (see loadPath variable) now contains " ^
Int.toString (length (!loadPath)) ^
" entries\n** after consulting Holmakefiles\n\n")
else ()
end;

use (Path.concat(Globals.HOLDIR, "tools/check-intconfig.sml"));

Expand Down
6 changes: 6 additions & 0 deletions tools-poly/prelude.ML
Expand Up @@ -139,10 +139,16 @@ local
end
in
val _ = HOL_Interactive.print_banner()
val lpsize0 = length (!loadPath)
val () =
( hol_use ("help" ++ "src-sml") "Database"
; hol_use ("tools-poly" ++ "poly") "Help"
; ReadHMF.extend_path_with_includes {verbosity = 0, lpref = loadPath}
; if length (!loadPath) <> lpsize0 then
print ("** Load path (see loadPath variable) now contains " ^
Int.toString (length (!loadPath)) ^
" entries\n** after consulting Holmakefiles\n\n")
else ()
; List.app Meta.fakeload ["PP", "PolyML", "Posix"]
; Globals.interactive := true
; Parse.current_backend := Parse.interactive_ppbackend ()
Expand Down

0 comments on commit 1354fce

Please sign in to comment.