This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: operate-and-get-next
>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:
Eli> I was missing such a feature as well. Thanks for implementing it.
You're welcome.
>> The appended patch implements this new readline command and gives
>> it the same binding in gdb that it has in bash.
Eli> I think we should mention this in the "Command Syntax" section,
Eli> where the action of RET is described.
Thanks. How about the appended?
I took the bulk of the text from the Bash manual.
Tom
Index: doc/ChangeLog
from Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Command Syntax): Document C-o binding.
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.51
diff -u -r1.51 gdb.texinfo
--- doc/gdb.texinfo 2001/09/12 19:49:52 1.51
+++ doc/gdb.texinfo 2001/10/05 00:34:19
@@ -1190,6 +1190,13 @@
nothing. This is useful mainly in command files (@pxref{Command
Files,,Command files}).
+@cindex repeating command sequences
+@kindex C-o @r{(operate-and-get-next)}
+The @kbd{C-o} binding is useful for repeating a complex sequence of
+commands. This command accepts the current line, like @kbd{RET}, and
+then fetches the next line relative to the current line from the history
+for editing.
+
@node Completion
@section Command completion