From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Perry Newsgroups: gmane.emacs.help Subject: Re: editing previous command in the *shell* buffer Date: Wed, 29 Apr 2015 12:57:31 +0100 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430314284 4970 80.91.229.3 (29 Apr 2015 13:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 13:31:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 15:31:23 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 1YnS5D-0006MZ-Bl for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 15:31:23 +0200 Original-Received: from localhost ([::1]:39004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnS5C-0004YD-2q for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 09:31:22 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Injection-Info: mx02.eternal-september.org; posting-host="6b28cfa778584b3e3eba6b5fb294ee54"; logging-data="22204"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lzhQ2Q3Au3vrQlmQHSAx/EEgK0Opnw/U=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:lCObyXLKHNQ9++owDfVeDz6Uxzk= sha1:UecEAzEuVDWQ7MMOFZBdmURKseo= Original-Xref: usenet.stanford.edu gnu.emacs.help:211789 X-Mailman-Approved-At: Wed, 29 Apr 2015 09:17:00 -0400 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:104072 Archived-At: cplum987@gmail.com writes: > 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...