[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 4e83536 1/2: require orderless to fix deferred hi
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu 4e83536 1/2: require orderless to fix deferred highlighting |
Date: |
Tue, 4 May 2021 06:07:56 -0400 (EDT) |
branch: externals/corfu
commit 4e835363bae08cca0593c855785bb8ca2348c3a5
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
require orderless to fix deferred highlighting
---
corfu.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/corfu.el b/corfu.el
index 4bc4eae..92050e3 100644
--- a/corfu.el
+++ b/corfu.el
@@ -317,6 +317,7 @@ Set to nil in order to disable confirmation."
(declare-function orderless-highlight-matches "ext:orderless")
(defun corfu--all-completions (&rest args)
"Compute all completions for ARGS with deferred highlighting."
+ (require 'orderless nil 'noerror)
(cl-letf* ((orig-pcm (symbol-function #'completion-pcm--hilit-commonality))
(orig-flex (symbol-function #'completion-flex-all-completions))
((symbol-function #'completion-flex-all-completions)