From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: emulate readline Date: Wed, 06 Apr 2011 21:06:50 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302118846 10179 80.91.229.12 (6 Apr 2011 19:40:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2011 19:40:46 +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 06 21:40:42 2011 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.69) (envelope-from ) id 1Q7Yan-0000bd-Ru for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 21:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:57265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Yan-0001es-AG for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 15:40:41 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!richardriley.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 85.183.18.158 Original-X-Trace: quimby.gnus.org 1302116848 20903 85.183.18.158 (6 Apr 2011 19:07:28 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 6 Apr 2011 19:07:28 +0000 (UTC) User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:AhK0C+KNsWjyfdbxKQ8MzKAOiCw= Original-Xref: usenet.stanford.edu gnu.emacs.help:186522 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:80636 Archived-At: despen@verizon.net writes: > fork writes: > >> Is there a way to get the behavior of this (super cool) >> readline behavior in the minibuffer? >> >> In my .inputrc I have this: >> >> "\e[A": history-search-backward >> "\e[B": history-search-forward >> "\eOA": history-search-backward >> "\eOB": history-search-forward >> >> So in bash I can type "ps", hit the up-arrow, and get the most recent >> command that started with these two letters (e.g. "psql -D foobar"). >> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc. >> I would like to type M-x in emacs, then cycle through previous >> commands like this. > > M-p How do you make M-p work like bash filtered history (C-r, C-n from bash line) as requested in the op?