Mercurial > hg > octave-lyh
diff src/input.cc @ 2299:f296bbc757a1
[project @ 1996-06-23 03:45:44 by jwe]
author | jwe |
---|---|
date | Sun, 23 Jun 1996 03:45:44 +0000 |
parents | 0e065eb7e838 |
children | b2f6b8a0992d |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -125,6 +125,9 @@ // The current line of input, from wherever. string current_input_line; +// TRUE after a call to completion_matches(). +bool octave_completion_matches_called = false; + // Return the octal number parsed from STRING, or -1 to indicate that // the string contained a bad number. @@ -1174,7 +1177,12 @@ } DEFUN (completion_matches, args, nargout, - "completion_matches (HINT): generate possible completions given HINT") + "completion_matches (HINT): generate possible completions given HINT\n\ +\n\ +This function is provided for the benefit of programs like Emacs which\n\ +might be controlling Octave and handling user input. The current command\n\ +number is not incremented when this function is called. This is a feature,\n\ +not a bug.") { octave_value retval; @@ -1236,6 +1244,8 @@ for (int i = 0; i < len; i++) octave_stdout << list[i] << "\n"; } + + octave_completion_matches_called = true; } } else