This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: operate-and-get-next
- To: tromey at redhat dot com
- Subject: Re: PATCH: operate-and-get-next
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- Date: Thu, 04 Oct 2001 09:00:58 +0200
- CC: gdb-patches at sources dot redhat dot com
- References: <87r8skfh47.fsf@creche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> From: Tom Tromey <tromey@redhat.com>
> 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.