From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: emulate readline Date: Wed, 06 Apr 2011 13:52:34 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302116326 26858 80.91.229.12 (6 Apr 2011 18:58:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2011 18:58: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 20:58:43 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 1Q7Xvr-0003Mq-Cf for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 20:58:41 +0200 Original-Received: from localhost ([127.0.0.1]:53977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Xuj-0005VH-4W for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 14:57:13 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Injection-Info: mx01.eternal-september.org; posting-host="jHG/q4CDuHQ12inYDCpZIQ"; logging-data="28045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YwKSF+BZUYm4UVVRQfUI1qwT/5IGi33c=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:UZDwLFjP7ecpG2/o75hcVfOWXng= sha1:Gm3kwmvnfAInKtUBdtgpzOwmMpI= Original-Xref: usenet.stanford.edu gnu.emacs.help:186518 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:80630 Archived-At: 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