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: bash and reverse-search-history Date: Fri, 21 Apr 2006 09:45:09 -0700 Message-ID: References: <20060421154309.GK5280@radix50.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145637946 23939 80.91.229.2 (21 Apr 2006 16:45:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2006 16:45:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 18:45:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWyl9-0005XO-LX for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2006 18:45:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWyl9-0000fU-2l for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2006 12:45:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWyky-0000fM-Ah for help-gnu-emacs@gnu.org; Fri, 21 Apr 2006 12:45:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWykw-0000em-Jl for help-gnu-emacs@gnu.org; Fri, 21 Apr 2006 12:45:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWykw-0000ei-Br for help-gnu-emacs@gnu.org; Fri, 21 Apr 2006 12:45:18 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FWymX-0000G3-0d for help-gnu-emacs@gnu.org; Fri, 21 Apr 2006 12:46:57 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k3LGjGrr020063 for ; Fri, 21 Apr 2006 11:45:17 -0500 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k3LGjGHt018071 for ; Fri, 21 Apr 2006 10:45:16 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-66-230.vpn.oracle.com [141.144.66.230]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k3LGjFoT018054 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 21 Apr 2006 10:45:16 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20060421154309.GK5280@radix50.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal 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:34550 Archived-At: > >I'm using bash inside emacs and want to use the reverse-search-history > >of bash, bound to C-r. Unfortunately, C-r is interpreted by emacs and > >doesn't apparently reach bash. How can I use this function of bash > >from > >within emacs? > > I don't know. By escaping? What is so bad about Emacs' own shell > history? Do you mean M-r? Two reasons: 1. It's not as convenient for me as the bash's one shows what it found as I type, and with emacs' one I have to modify regexp on the next run. 2. I couldn't find a way to search the whole bash history. When I type some expression that I know is in ~/.bash_history, emacs says "Not found". I don't know if this helps you or not, but you might take a look. Icicles (a library for GNU Emacs) lets you search the entire history (your #2), updating matches as you type (your #1). I don't know what you mean by "have to modify regexp on the next run". Anyway, take a look: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_History_Enhancements. That discussion is in the middle of the Icicles doc, so if it's not immediately obvious how it could apply to your question you might read some of the introductory material. The doc entry point is here: http://www.emacswiki.org/cgi-bin/wiki/Icicles.