From 4e835363bae08cca0593c855785bb8ca2348c3a5 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 4 May 2021 11:51:08 +0200 Subject: 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) -- cgit v1.0