]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak bytecomp's loading of cl-extra
authorGlenn Morris <rgm@gnu.org>
Wed, 19 Apr 2017 00:52:22 +0000 (20:52 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 19 Apr 2017 00:52:22 +0000 (20:52 -0400)
* lisp/emacs-lisp/bytecomp.el: Don't force load of cl-extra in a
post-bootstrap emacs where cl-loaddefs does exist.

lisp/emacs-lisp/bytecomp.el

index 2c2996ebab4a024b171f8fd5f4591cd38b3e52df..f0f938da43f11c613f2342e05d5afabd10e20bf8 100644 (file)
 (require 'backquote)
 (require 'macroexp)
 (require 'cconv)
+(require 'cl-lib)
 
 ;; During bootstrap, cl-loaddefs.el is not created yet, so loading cl-lib
 ;; doesn't setup autoloads for things like cl-every, which is why we have to
-;; require cl-extra instead (bug#18804).
-(require 'cl-extra)
+;; require cl-extra as well (bug#18804).
+(or (fboundp 'cl-every)
+    (require 'cl-extra))
 
 (or (fboundp 'defsubst)
     ;; This really ought to be loaded already!