From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: editing previous command in the *shell* buffer Date: Tue, 28 Apr 2015 14:18:40 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9892BF35CF@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1430230750 11572 80.91.229.3 (28 Apr 2015 14:19:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 14:19:10 +0000 (UTC) To: "cplum987@gmail.com" , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 16:19:02 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yn6Lk-0007Zz-HQ for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 16:19:00 +0200 Original-Received: from localhost ([::1]:33652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6Lj-0003Om-QM for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 10:18:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6LU-0003Og-3F for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:18:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn6LQ-0000rk-PU for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:18:44 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:8838 helo=livemail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6LQ-0000rW-MF for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:18:40 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.03.0123.003; Tue, 28 Apr 2015 10:18:41 -0400 Thread-Topic: editing previous command in the *shell* buffer Thread-Index: AQHQgT+QqrmVKsLyy0G77O6vawK++51ieGDQ In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104031 Archived-At: > -----Original Message----- > On > Behalf Of cplum987 > Subject: editing previous command in the *shell* buffer >=20 > How can I do one or both of the following: >=20 > (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,=20 but it's probably too little to bother getting permission from my employer to give away. :( >=20 > (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. Does the xemacs lisp port to GNU emacs? > thanks, >=20 > Chris [Doug Lewan]=20 --=20 ,Doug Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 or ext 4335 The human brain is the most complex thing known to man, according to the hu= man brain.