| <html lang="en"> |
| <head> |
| <title>Commands For Completion - Debugging with GDB</title> |
| <meta http-equiv="Content-Type" content="text/html"> |
| <meta name="description" content="Debugging with GDB"> |
| <meta name="generator" content="makeinfo 4.13"> |
| <link title="Top" rel="start" href="index.html#Top"> |
| <link rel="up" href="Bindable-Readline-Commands.html#Bindable-Readline-Commands" title="Bindable Readline Commands"> |
| <link rel="prev" href="Numeric-Arguments.html#Numeric-Arguments" title="Numeric Arguments"> |
| <link rel="next" href="Keyboard-Macros.html#Keyboard-Macros" title="Keyboard Macros"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| Copyright (C) 1988-2019 Free Software Foundation, Inc. |
| |
| Permission is granted to copy, distribute and/or modify this document |
| under the terms of the GNU Free Documentation License, Version 1.3 or |
| any later version published by the Free Software Foundation; with the |
| Invariant Sections being ``Free Software'' and ``Free Software Needs |
| Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,'' |
| and with the Back-Cover Texts as in (a) below. |
| |
| (a) The FSF's Back-Cover Text is: ``You are free to copy and modify |
| this GNU Manual. Buying copies from GNU Press supports the FSF in |
| developing GNU and promoting software freedom.'' |
| --> |
| <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: <a rel="next" accesskey="n" href="Keyboard-Macros.html#Keyboard-Macros">Keyboard Macros</a>, |
| Previous: <a rel="previous" accesskey="p" href="Numeric-Arguments.html#Numeric-Arguments">Numeric Arguments</a>, |
| Up: <a rel="up" accesskey="u" href="Bindable-Readline-Commands.html#Bindable-Readline-Commands">Bindable Readline Commands</a> |
| <hr> |
| </div> |
| |
| <h4 class="subsection">32.4.6 Letting Readline Type For You</h4> |
| |
| <dl> |
| <dt><code>complete (<TAB>)</code><a name="index-complete-_0028_0040key_007bTAB_007d_0029-3269"></a><dd>Attempt to perform completion on the text before point. |
| The actual completion performed is application-specific. |
| The default is filename completion. |
| |
| <br><dt><code>possible-completions (M-?)</code><a name="index-possible_002dcompletions-_0028M_002d_003f_0029-3270"></a><dd>List the possible completions of the text before point. |
| When displaying completions, Readline sets the number of columns used |
| for display to the value of <code>completion-display-width</code>, the value of |
| the environment variable <samp><span class="env">COLUMNS</span></samp>, or the screen width, in that order. |
| |
| <br><dt><code>insert-completions (M-*)</code><a name="index-insert_002dcompletions-_0028M_002d_002a_0029-3271"></a><dd>Insert all completions of the text before point that would have |
| been generated by <code>possible-completions</code>. |
| |
| <br><dt><code>menu-complete ()</code><a name="index-menu_002dcomplete-_0028_0029-3272"></a><dd>Similar to <code>complete</code>, but replaces the word to be completed |
| with a single match from the list of possible completions. |
| Repeated execution of <code>menu-complete</code> steps through the list |
| of possible completions, inserting each match in turn. |
| At the end of the list of completions, the bell is rung |
| (subject to the setting of <code>bell-style</code>) |
| and the original text is restored. |
| An argument of <var>n</var> moves <var>n</var> positions forward in the list |
| of matches; a negative argument may be used to move backward |
| through the list. |
| This command is intended to be bound to <TAB>, but is unbound |
| by default. |
| |
| <br><dt><code>menu-complete-backward ()</code><a name="index-menu_002dcomplete_002dbackward-_0028_0029-3273"></a><dd>Identical to <code>menu-complete</code>, but moves backward through the list |
| of possible completions, as if <code>menu-complete</code> had been given a |
| negative argument. |
| |
| <br><dt><code>delete-char-or-list ()</code><a name="index-delete_002dchar_002dor_002dlist-_0028_0029-3274"></a><dd>Deletes the character under the cursor if not at the beginning or |
| end of the line (like <code>delete-char</code>). |
| If at the end of the line, behaves identically to |
| <code>possible-completions</code>. |
| This command is unbound by default. |
| |
| </dl> |
| |
| </body></html> |
| |