From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: HASM Newsgroups: gmane.emacs.help Subject: Re: editing previous command in the *shell* buffer Date: Tue, 28 Apr 2015 10:10:20 -0700 Organization: A noiseless patient Spider Message-ID: <87sibkxjpf.fsf@127.0.0.1> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430249243 25554 80.91.229.3 (28 Apr 2015 19:27:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 19:27:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 21:27:20 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 1YnBA1-0006OA-7b for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 21:27:13 +0200 Original-Received: from localhost ([::1]:35585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnBA0-0001qU-E7 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 15:27:12 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Injection-Info: mx02.eternal-september.org; posting-host="160216039004f8be4a86f5bec580865e"; logging-data="22698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/umtIhkZgND7D3bWBY5xtLJ8Jbxts5lfs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:zOsIUFT5OSZog39Ovd0kQcye/tk= sha1:JEypjx6Vnv//2s93vU6SWg+XN7c= Original-Xref: usenet.stanford.edu gnu.emacs.help:211757 X-Mailman-Approved-At: Tue, 28 Apr 2015 15:27:03 -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:104049 Archived-At: cplum987@gmail.com writes: > 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. Doesn't M-r work for you? M-r runs the command comint-history-isearch-backward-regexp, -- HASM