From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@rum.cs.yale.edu>
Subject: Re: Intelligent history cycling
Date: 21 Jun 2002 16:11:30 -0400 [thread overview]
Message-ID: <5l8z585r4d.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: <vafwuss7g9m.fsf@lucy.cs.uni-dortmund.de>
>>>>> "Kai" == Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> 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
next parent reply other threads:[~2002-06-21 20:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3D1350DF.9080502@radioscape.com>
[not found] ` <vafwuss7g9m.fsf@lucy.cs.uni-dortmund.de>
2002-06-21 20:11 ` Stefan Monnier <foo@acm.com> [this message]
2002-06-22 9:33 ` Intelligent history cycling Kai Großjohann
2002-06-22 17:46 ` Stefan Monnier
2002-06-22 22:51 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5l8z585r4d.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@rum.cs.yale.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).