This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: operate-and-get-next


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]