From: Eshel Yaron Date: Sun, 11 Sep 2022 16:10:40 +0000 (+0300) Subject: FIXED: sweep_load_buffer/3: load files in the context of "user" X-Git-Tag: v0.2.0~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b168465391d24dbdcc6827606e8a3a81702a5e56;p=sweep.git FIXED: sweep_load_buffer/3: load files in the context of "user" --- diff --git a/sweep.pl b/sweep.pl index 0f8f06d..75138a1 100644 --- a/sweep.pl +++ b/sweep.pl @@ -645,7 +645,7 @@ sweep_load_buffer([String|Path0], Result) :- sweep_load_buffer_(Stream, Path, []) :- set_stream(Stream, file_name(Path)), - load_files(Path, [stream(Stream)]). + @(load_files(Path, [stream(Stream)]), user). with_buffer_stream(Stream, String, Goal) :- setup_call_cleanup(( new_memory_file(H),