From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: Editing the previous regexp Date: Thu, 28 Jul 2011 12:08:01 +0800 Message-ID: References: <4E2E6509.6030803@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311826107 24278 80.91.229.12 (28 Jul 2011 04:08:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2011 04:08:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Vijay Lakshminarayanan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 06:08:23 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmHtX-0003o8-BI for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2011 06:08:23 +0200 Original-Received: from localhost ([::1]:45207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmHtT-0007zg-F0 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2011 00:08:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmHtJ-0007wg-ND for help-gnu-emacs@gnu.org; Thu, 28 Jul 2011 00:08:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmHtD-0005lm-Fl for help-gnu-emacs@gnu.org; Thu, 28 Jul 2011 00:08:06 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:43570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmHtB-0005ka-R6 for help-gnu-emacs@gnu.org; Thu, 28 Jul 2011 00:08:02 -0400 Original-Received: by qwa26 with SMTP id 26so1525893qwa.0 for ; Wed, 27 Jul 2011 21:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=h6yPh4VEA8zAw2D2GWEBlf1bP3kMlj7bJcNQGoy7RrM=; b=A2e4xvvN/lKR4T5CBYBQybzhbxiAi0eV0qPxKCFIBfUsXivX17EsT8LO8Dw9GMbCCp 8ppcUncWwDwbLNN+wB0btDNflMtZJmX16JHvgBbb3g+k4jCs4PLsat+RECHweasFozoR hcVClUyzSwNfoPlox08cnzv0e9yzQ8MyrCVKk= Original-Received: by 10.224.209.132 with SMTP id gg4mr467880qab.335.1311826081079; Wed, 27 Jul 2011 21:08:01 -0700 (PDT) Original-Received: by 10.224.2.73 with HTTP; Wed, 27 Jul 2011 21:08:01 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 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:81824 Archived-At: On Wed, Jul 27, 2011 at 12:02 AM, Vijay Lakshminarayanan wrote: > M-p works too. =A0I prefer that to arrow keys. =A0M-n is the equivalent o= f `previous-complete-history-element' is way more useful than the default binding of . You have to change it in a few key-maps if you want the behaviour across many prompts: rough snippet straight from my init, fix as required: (mapc '(lambda (map) (define-key map [(meta p)] 'previous-complete-history-element) (define-key map [(meta n)] 'next-complete-history-element)) (nconc (list minibuffer-local-completion-map minibuffer-local-isearch-map minibuffer-local-map minibuffer-local-must-match-map ) (Init-emacs-load (list minibuffer-local-ns-map)))) --=20 Le