From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: tromey@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: operate-and-get-next Date: Thu, 04 Oct 2001 00:00:00 -0000 Message-id: <8011-Thu04Oct2001090058+0300-eliz@is.elta.co.il> References: <87r8skfh47.fsf@creche.redhat.com> X-SW-Source: 2001-10/msg00081.html > From: Tom Tromey > Date: 03 Oct 2001 17:17:44 -0600 > > Bash has a readline command called `operate-and-get-next' which I use > very frequently (many times per day). It works like this: go up the > history list using C-p. Then type C-o (the operate-and-get-next key). > This acts like Enter, but when the prompt returns the next command in > history is already available for editing. This key binding makes it > very convenient to replay a previously-entered sequence of commands. > I've long missed it in gdb; for some reason it is a bash-specific key > binding and is not available in readline itself. I was missing such a feature as well. Thanks for implementing it. > The appended patch implements this new readline command and gives it > the same binding in gdb that it has in bash. I think we should mention this in the "Command Syntax" section, where the action of RET is described.