# HG changeset patch # User Rik # Date 1674798632 28800 # Node ID 5431cd68f48a6cd0678def3f7aec43f19e9cc418 # Parent 3cd5c988b3f7f8037c54c126b997160fe7dcd39e Improve output of "whos -file". * call-stack.cc (do_who): Change name of scope from "$dummy_scope$" to name of the file being queried. Remove an extra newline from lead-in sentence "Variables in the file ...". diff -r 3cd5c988b3f7 -r 5431cd68f48a libinterp/corefcn/call-stack.cc --- a/libinterp/corefcn/call-stack.cc Thu Jan 26 09:50:44 2023 -0800 +++ b/libinterp/corefcn/call-stack.cc Thu Jan 26 21:50:32 2023 -0800 @@ -976,7 +976,7 @@ // Set up temporary scope. - symbol_scope tmp_scope ("$dummy_scope$"); + symbol_scope tmp_scope (file_name); push (tmp_scope); @@ -986,7 +986,7 @@ Fload (interp, ovl (octave_value (file_name))); - std::string newmsg = "Variables in the file " + file_name + ":\n\n"; + std::string newmsg = "Variables in the file " + file_name + ":\n"; if (global_only) return do_global_who_two (patterns, have_regexp, return_list,