[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ab287a1: * lisp/minibuffer.el (completion-all-sorted-completions)
From: |
Stefan Monnier |
Subject: |
master ab287a1: * lisp/minibuffer.el (completion-all-sorted-completions): Fix last change |
Date: |
Mon, 19 Apr 2021 15:10:11 -0400 (EDT) |
branch: master
commit ab287a148fc274d79fb13004aa7ab76fe1058450
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/minibuffer.el (completion-all-sorted-completions): Fix last change
---
lisp/minibuffer.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index b98bc6a..4a414ae 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1411,8 +1411,9 @@ KEYFUN takes an element of ELEMS and should return a
numerical value."
(cl-incf index))
(when (stringp def)
(puthash def -1 hash))
- (minibuffer--sort-by-key
- all (lambda (x) (gethash x hash most-positive-fixnum)))))))
+ (setq all (minibuffer--sort-by-key
+ all (lambda (x)
+ (gethash x hash most-positive-fixnum))))))))
;; Cache the result. This is not just for speed, but also so that
;; repeated calls to minibuffer-force-complete can cycle through
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master ab287a1: * lisp/minibuffer.el (completion-all-sorted-completions): Fix last change,
Stefan Monnier <=