]> git.eshelyaron.com Git - emacs.git/commitdiff
Require cl-lib and do not use seq functions
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 29 Nov 2017 15:47:00 +0000 (15:47 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Wed, 29 Nov 2017 15:47:00 +0000 (15:47 +0000)
cl-lib is also required for a separate call to cl-mapcan.

Fixes https://github.com/jwiegley/use-package/issues/520

lisp/use-package/use-package.el

index a1beca1fc0581235f771011405fd00ba84f34e90..f6c437d572893ef1c54179af20c3478a153f5ebd 100644 (file)
@@ -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))))