[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu a4cb805 1/2: Requiring orderless only once seems
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu a4cb805 1/2: Requiring orderless only once seems to fix the issue too |
Date: |
Tue, 4 May 2021 13:50:34 -0400 (EDT) |
branch: externals/corfu
commit a4cb805e490369327663e80656f1e56126b0e352
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Requiring orderless only once seems to fix the issue too
---
corfu.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/corfu.el b/corfu.el
index 9f7f424..96ce672 100644
--- a/corfu.el
+++ b/corfu.el
@@ -315,9 +315,9 @@ Set to nil in order to disable confirmation."
;; bug#47711: Deferred highlighting for `completion-all-completions'
;; XXX There is one complication: `completion--twq-all' already adds
`completions-common-part'.
(declare-function orderless-highlight-matches "ext:orderless")
+(require 'orderless nil 'noerror)
(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)