From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier " Newsgroups: gmane.emacs.devel Subject: Re: Intelligent history cycling Date: 21 Jun 2002 16:11:30 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <5l8z585r4d.fsf@rum.cs.yale.edu> References: <3D1350DF.9080502@radioscape.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1024690336 1387 127.0.0.1 (21 Jun 2002 20:12:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 20:12:16 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17LUlT-0000MG-00 for ; Fri, 21 Jun 2002 22:12:15 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17LVDn-00065r-00 for ; Fri, 21 Jun 2002 22:41:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LUlN-0001vE-00; Fri, 21 Jun 2002 16:12:09 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LUkl-0001uc-00 for ; Fri, 21 Jun 2002 16:11:31 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g5LKBUj13040; Fri, 21 Jun 2002 16:11:30 -0400 X-Authentication-Warning: rum.cs.yale.edu: monnier set sender to monnier@cs.yale.edu using -f Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5071 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5071 >>>>> "Kai" =3D=3D Kai Gro=C3=9Fjohann = writes: > I use this: > (mapcar > (function > (lambda (x) > (define-key x (kbd "ESC p") 'previous-complete-history-element) > (define-key x (kbd "ESC n") 'next-complete-history-element))) > (list minibuffer-local-completion-map minibuffer-local-isearch-map > minibuffer-local-map minibuffer-local-must-match-map > minibuffer-local-ns-map)) > I wish there was a default keybinding for this. I also use it just like you. Actually, if you look at simple.el you'll see that there is code that does it as well, but it's commented out. I wish we could turn it on again. I think Richard didn't like it for some reason. Maybe it was because it fails when nothing matches or because C-x C-f M-p only lists the previous file(s) in the same directory. I've actually changed mine such that M-p only does search if the user has already typed something (so that C-x C-f M-p behaves just like it does now). Also M-p reverts back to non-searching if the search fails. Stefan