From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: xemacs to emacs, missing shell mode feature Date: Mon, 30 Apr 2007 09:48:28 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177951787 29815 80.91.229.12 (30 Apr 2007 16:49:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2007 16:49:47 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 30 18:49:45 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HiZ4K-0007Mk-QR for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Apr 2007 18:49:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiZAX-0007oX-2u for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Apr 2007 12:56:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HiZAK-0007oS-34 for help-gnu-emacs@gnu.org; Mon, 30 Apr 2007 12:55:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HiZAI-0007oG-Ip for help-gnu-emacs@gnu.org; Mon, 30 Apr 2007 12:55:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiZAI-0007oD-Gr for help-gnu-emacs@gnu.org; Mon, 30 Apr 2007 12:55:54 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HiZ45-0004Ph-C8 for help-gnu-emacs@gnu.org; Mon, 30 Apr 2007 12:49:29 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l3UGnQB9003227 for ; Mon, 30 Apr 2007 10:49:26 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l3U7xHOp028802 for ; Mon, 30 Apr 2007 10:49:25 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt351.oracle.com with ESMTP id 2657567351177951708; Mon, 30 Apr 2007 09:48:28 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43412 Archived-At: >> pull up the previous command that starts with that prefix.... >> Does emacs have a similar feature? > > shell-mode M-r, which is comint-previous-matching-input. > Sometimes I repeat the command ... Icicles provides two ways to reuse previous shell commands that match some pattern (possibly editing them). In comint mode and derived modes such as shell mode and inferior Lisp mode: C-TAB - Complete your input (possibly a regexp) against 'comint-input-ring', which can include shell commands you issued in previous sessions. Cycle among matches. C-` - Complete your input (possibly a regexp) against previous shell input visible in the buffer. Cycle among matches. This is a search command, and it lets you use secondary patterns to refine matching. If the region is active, only it is searched. http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Other_Search_Commands#Icicle sShell