[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editing previous command in the *shell* buffer

From: cplum987
Subject: Re: editing previous command in the *shell* buffer
Date: Wed, 29 Apr 2015 13:14:39 -0700 (PDT)
User-agent: G2/1.0

On Wednesday, April 29, 2015 at 4:57:34 AM UTC-7, Steve Perry wrote:
> > How can I do one or both of the following:
> >
> > ...
> >
> > (2) type the first part of the command, and have M-p search for the
> > previous occurrence of the command that starts with the same pattern
> > I've typed in. This is an xemacs feature I sorely miss.  C-s just
> > isn't the same. If often finds all sorts of other cruft you have to
> > skip over.
> > thanks,
> I bind M-p and M-n to comint-previous-matching-input-from-input and
> comint-next-matching-input-from-input respectively which I think does
> what you want...

That's real close, but after typing the first few characters of the command, I 
then have to select them in order to get the matching to work. Otherwise it 
just works as M-p does by default.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]