emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: Other details about completion.


From: Ergus
Subject: Re: [PATCH] Re: Other details about completion.
Date: Thu, 7 Apr 2022 01:55:27 +0200

On Wed, Apr 06, 2022 at 09:29:13PM +0300, Juri Linkov wrote:
BTW: do we have any sort of history search based on the inserted text
like bash history-search-backward??

It's just 'C-r C-w' in the minibuffer.

Just in case:

Reading the code I found two functions in simple.el not documented in
the manual:

next-complete-history-element and previous-complete-history-element

They are undocumented and I didn't find any reference to them in the
Emacs manual, but so far they do what I asked for; so I finally did
this:

(keymap-set minibuffer-local-map "<down>" #'next-complete-history-element)
(keymap-set minibuffer-local-map "<up>" #'previous-complete-history-element)

Which gives a better experience than the default to complete from
history. As I said: `like bash history-search-backward`



reply via email to

[Prev in Thread] Current Thread [Next in Thread]