Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b38d2da330d1936e5ab1307c039c4941 > files > 163

octave-doc-3.6.4-3.mga4.noarch.rpm

<html lang="en">
<head>
<title>Commands For Completion - GNU Octave</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Octave">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Command-Line-Editing.html#Command-Line-Editing" title="Command Line Editing">
<link rel="prev" href="Commands-For-Text.html#Commands-For-Text" title="Commands For Text">
<link rel="next" href="Commands-For-History.html#Commands-For-History" title="Commands For History">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Commands-For-Completion"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Commands-For-History.html#Commands-For-History">Commands For History</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Commands-For-Text.html#Commands-For-Text">Commands For Text</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Command-Line-Editing.html#Command-Line-Editing">Command Line Editing</a>
<hr>
</div>

<h4 class="subsection">2.4.4 Letting Readline Type For You</h4>

<p><a name="index-command-completion-124"></a>
The following commands allow Octave to complete command and variable
names for you.

     <dl>
<dt><kbd>&lt;TAB&gt;</kbd><dd>Attempt to do completion on the text before the cursor.  Octave can
complete the names of commands and variables.

     <br><dt><kbd>M-?</kbd><dd>List the possible completions of the text before the cursor. 
</dl>

<!-- completion_append_char src/input.cc -->
   <p><a name="doc_002dcompletion_005fappend_005fchar"></a>

<div class="defun">
&mdash; Built-in Function: <var>val</var> = <b>completion_append_char</b> ()<var><a name="index-completion_005fappend_005fchar-125"></a></var><br>
&mdash; Built-in Function: <var>old_val</var> = <b>completion_append_char</b> (<var>new_val</var>)<var><a name="index-completion_005fappend_005fchar-126"></a></var><br>
&mdash; Built-in Function:  <b>completion_append_char</b> (<var>new_val, "local"</var>)<var><a name="index-completion_005fappend_005fchar-127"></a></var><br>
<blockquote><p>Query or set the internal character variable that is appended to
successful command-line completion attempts.  The default
value is <code>" "</code> (a single space).

        <p>When called from inside a function with the "local" option, the variable is
changed locally for the function and any subroutines it calls.  The original
variable value is restored when exiting the function. 
</p></blockquote></div>

<!-- completion_matches src/input.cc -->
   <p><a name="doc_002dcompletion_005fmatches"></a>

<div class="defun">
&mdash; Built-in Function:  <b>completion_matches</b> (<var>hint</var>)<var><a name="index-completion_005fmatches-128"></a></var><br>
<blockquote><p>Generate possible completions given <var>hint</var>.

        <p>This function is provided for the benefit of programs like Emacs which
might be controlling Octave and handling user input.  The current
command number is not incremented when this function is called.  This is
a feature, not a bug. 
</p></blockquote></div>

   </body></html>