summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2017-11-29 15:47:00 +0000
committerBasil L. Contovounesios <contovob@tcd.ie>2017-11-29 15:47:00 +0000
commit4303a2faf6de7d06b39c240bfb70a97ceea1f1d7 (patch)
tree2f908bfdb395930b54aa67957ba34260d46015ef /lisp/use-package/use-package.el
parentb7041c0f2912dc0f75c672663f79e4506c4a2e2e (diff)
downloademacs-4303a2faf6de7d06b39c240bfb70a97ceea1f1d7.tar.gz
emacs-4303a2faf6de7d06b39c240bfb70a97ceea1f1d7.tar.bz2
emacs-4303a2faf6de7d06b39c240bfb70a97ceea1f1d7.zip
Require cl-lib and do not use seq functions
cl-lib is also required for a separate call to cl-mapcan. Fixes https://github.com/jwiegley/use-package/issues/520
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index a1beca1fc05..f6c437d5728 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -41,6 +41,7 @@
(require 'bind-key)
(require 'bytecomp)
+(require 'cl-lib)
(eval-when-compile (require 'cl))
(eval-when-compile (require 'regexp-opt))
@@ -1426,7 +1427,7 @@ deferred until the prefix key sequence is pressed."
(or (symbolp k)
(and (listp k)
(listp (cdr k))
- (seq-every-p #'symbolp k))))
+ (cl-every #'symbolp k))))
#'(lambda (v)
(or (symbolp v) (functionp v)))
name label arg))))
@@ -1452,7 +1453,7 @@ deferred until the prefix key sequence is pressed."
(let ((syms (car def))
(fun (cdr def)))
(mapcar
- #'(lambda (sym)
+ #'(lambda (sym)
`(add-hook (quote ,(intern (format "%s-hook" sym)))
(function ,fun)))
(if (symbolp syms) (list syms) syms)))) args))))