[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: Tue, 28 Apr 2015 12:23:36 -0700 (PDT)
User-agent: G2/1.0

On Tuesday, April 28, 2015 at 7:18:52 AM UTC-7, Doug Lewan wrote:
> > -----Original Message-----
> > On
> > Behalf Of cplum987
> > Subject: editing previous command in the *shell* buffer
> > 
> > How can I do one or both of the following:
> > 
> > (1) Find a previous command in the *shell* buffer via search C-s, and
> > have pressing enter insert the command as the current command, but
> > without execution. This would allow me to edit the command before
> > executing it, but not have to modify the command as it previously
> > exists in the *shell* buffer.
> I agree. This is a bit of a hole. I copy and paste and edit all the time.
> It doesn't seem like it would be too hard to build, 
> but it's probably too little to bother getting permission from my employer
> to give away. :(
> > 
> > (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.
> This sounds like it would be a good addition. I use M-/ to do such a thing,
> but that does get a little tedious.
Looks like M-/ iterates through the command history just like M-p, but only 
includes the root command, not the arguments.

> Does the xemacs lisp port to GNU emacs?
I have no idea. Beyond my abilities for sure.

reply via email to

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