branch: externals/orderless
commit 7c83d76f16b609a61e38f2287e8f2627e3345daa
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>
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 <[email protected]>
;; 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