branch: externals/orderless
commit 50c83f2752f803e413125acc90ebcb09d98fe8db
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>

    Avoid using cl-lib in autoloads
---
 orderless.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/orderless.el b/orderless.el
index eb7298aadc..06780f4c24 100644
--- a/orderless.el
+++ b/orderless.el
@@ -287,7 +287,6 @@ This function is part of the `orderless' completion style."
 ;;; ivy integration
 
 (defvar ivy-regex)
-(defvar ivy-highlight-functions-alist)
 
 ;;;###autoload
 (defun orderless-ivy-re-builder (str)
@@ -303,9 +302,8 @@ This function is for integration of orderless with ivy."
 
 ;;;###autoload
 (with-eval-after-load 'ivy
-  (cl-pushnew '(orderless-ivy-re-builder . orderless-ivy-highlight)
-              ivy-highlight-functions-alist
-              :test #'equal))
+  (add-to-list 'ivy-highlight-functions-alist
+               '(orderless-ivy-re-builder . orderless-ivy-highlight)))
 
 (provide 'orderless)
 ;;; orderless.el ends here

Reply via email to