Mercurial > octave
changeset 29307:b2d62cfac9e6
update last prompt time stamp when parsing files in server loop
* pt-eval.cc (tree_evaluator::parse_and_execute):
Update Vlast_prompt_time.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 20 Jan 2021 23:12:41 -0500 |
parents | 0231189f630d |
children | f3272029d42c |
files | libinterp/parse-tree/pt-eval.cc |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc Wed Jan 20 16:53:16 2021 -0500 +++ b/libinterp/parse-tree/pt-eval.cc Wed Jan 20 23:12:41 2021 -0500 @@ -580,6 +580,17 @@ reset_debug_state (); } + // FIXME: OK to do this job here, or should it be in the functions + // that do the actual prompting? + + // Update the time stamp for the "prompt" so that automatically + // finding modified files based on file modification times will + // work. In the future, we may do something completely different to + // check for changes to files but for now, we rely on the prompt + // time stamp to limit the checks for file modification times. + + Vlast_prompt_time.stamp (); + bool eof = false; event_manager& evmgr = m_interpreter.get_event_manager ();