]> git.eshelyaron.com Git - emacs.git/commit
Fix icomplete-force-complete-and-exit for no-input situations
authorJoão Távora <joaotavora@gmail.com>
Thu, 31 Oct 2019 20:19:35 +0000 (20:19 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sat, 2 Nov 2019 02:35:45 +0000 (02:35 +0000)
commit0bb97ad8b89af91e296ea791f34b46963323ce7a
treea6c708979032da419350fbe6f8f8bbd64ff6c149
parent88f193ed05649b8c622867b8b2623b8cb08fdc96
Fix icomplete-force-complete-and-exit for no-input situations

If there is no minibuffer input, but the user has already cycled some
pre-calculated completions, we should be calling
minibuffer-force-complete-and-exit instead of
minibuffer-complete-and-exit.  The former is guaranteed to be fast in
this situation and yields the desired "selected" completion, while the
latter will just give us the default, ignoring all the cycling of
icomplete-{forward|backward}-completions.

* lisp/icomplete.el (icomplete-force-complete-and-exit): Add
comments and fix for empty input but some completions calculated.
lisp/icomplete.el