emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/orderless 7c83d76f16 007/204: Use cl-pushnew instead of


From: ELPA Syncer
Subject: [elpa] externals/orderless 7c83d76f16 007/204: Use cl-pushnew instead of push to register the completion style
Date: Tue, 11 Jan 2022 12:58:12 -0500 (EST)

branch: externals/orderless
commit 7c83d76f16b609a61e38f2287e8f2627e3345daa
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Use cl-pushnew instead of push to register the completion style
    
    Thanks to alphapapa for suggesting this change.
---
 orderless.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/orderless.el b/orderless.el
index b324fc75c5..cf376e15e1 100644
--- a/orderless.el
+++ b/orderless.el
@@ -4,6 +4,9 @@
 
 ;; Author: Omar Antolín Camarena <omar@matem.unam.mx>
 ;; Keywords: extensions
+;; Version: 0.1
+;; Homepage: https://github.com/oantolin/orderless
+;; Package-Requires: ((emacs "24.3"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
@@ -68,10 +71,10 @@
        ((atom (cdr all)) (measured (concat prefix (car all))))
        (t (measured string))))))
 
-(push '(orderless
-        orderless-try-completion orderless-all-completions
-        "Completion of multiple regexps, in any order.")
-      completion-styles-alist)
+(cl-pushnew '(orderless
+              orderless-try-completion orderless-all-completions
+              "Completion of multiple regexps, in any order.")
+            completion-styles-alist)
 
 (provide 'orderless)
 ;;; orderless.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]