Mercurial > octave
changeset 31782:5431cd68f48a
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 ...".
author | Rik <rik@octave.org> |
---|---|
date | Thu, 26 Jan 2023 21:50:32 -0800 |
parents | 3cd5c988b3f7 |
children | 2891372cce9f |
files | libinterp/corefcn/call-stack.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,