[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico f4bde3a 36/48: Ensure that orderless highlighti
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vertico f4bde3a 36/48: Ensure that orderless highlighting succeeds |
Date: |
Mon, 5 Apr 2021 10:54:45 -0400 (EDT) |
branch: externals/vertico
commit f4bde3a1fb84b5df464093aeb8b3c1b226ab5b9f
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Ensure that orderless highlighting succeeds
---
minicomp.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/minicomp.el b/minicomp.el
index 0bd51eb..c7f9425 100644
--- a/minicomp.el
+++ b/minicomp.el
@@ -476,14 +476,18 @@
(setq-local orderless-skip-highlighting t
minicomp--highlight-function
(lambda (input metadata candidates)
- (let ((orderless-skip-highlighting nil))
- (nconc
- (completion-all-completions input
- candidates
- nil
- (length input)
- metadata)
- nil)))))
+ ;; Pass once again through the completion style for
highlighting
+ (let* ((orderless-skip-highlighting nil)
+ (highlighted (nconc
+ (completion-all-completions input
+ candidates
+ nil
+ (length
input)
+ metadata)
+ nil)))
+ ;; Check if everything went alright, all the candidates
should still be present.
+ (if (= (length highlighted) (length candidates))
+ highlighted candidates)))))
(use-local-map minicomp-map)
(add-hook 'post-command-hook #'minicomp--exhibit -99 'local))
- [elpa] externals/vertico afd0abf 41/48: Always pass again through completion style for highlighting, (continued)
- [elpa] externals/vertico afd0abf 41/48: Always pass again through completion style for highlighting, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 06e5dfe 02/48: improve minibuffer resizing, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico b5cfdd7 09/48: Handle completion boundaries, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 866475c 05/48: increase threshold, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico c0606cf 39/48: Formatting, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 7fdfd52 45/48: Formatting, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 708f89d 46/48: Update copyright information, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico cc3ba08 23/48: add screenshot, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 59538ff 32/48: Configurable truncation faces, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 406f8b8 44/48: vertico-insert: Insert only if a candidate is selected, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico f4bde3a 36/48: Ensure that orderless highlighting succeeds,
Stefan Monnier <=
- [elpa] externals/vertico b7e6de9 37/48: Filter files with completion-ignored-extensions, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 4acc17e 38/48: Show !/0 if match is required, Stefan Monnier, 2021/04/05
- [elpa] externals/vertico 1a9b1b2 48/48: Update readme, Stefan Monnier, 2021/04/05