From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: operate-and-get-next Date: Thu, 04 Oct 2001 18:16:00 -0000 Message-id: <87y9mqj2n5.fsf@creche.redhat.com> References: <87r8skfh47.fsf@creche.redhat.com> <8011-Thu04Oct2001090058+0300-eliz@is.elta.co.il> X-SW-Source: 2001-10/msg00090.html >>>>> "Eli" == Eli Zaretskii 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 * 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