parse-time.el: Require cl when compiling
authorKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 27 Sep 2014 13:03:05 +0000 (13:03 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 27 Sep 2014 13:03:05 +0000 (13:03 +0000)
lisp/ChangeLog
lisp/parse-time.el

index e238447..23eed71 100644 (file)
@@ -1,3 +1,7 @@
+2014-09-27  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * parse-time.el: Require cl when compiling.
+
 2014-09-26  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        Use cl-lib as much as possible following the 2014-09-26 change
index 392aff2..bbbf3d7 100644 (file)
 ;;; Code:
 
 (eval-and-compile
-  (ignore-errors (require 'cl-lib))
-  (if (featurep 'cl-lib)
-      ;; Emacs >=24
-      (defalias 'parse-time-incf 'cl-incf)
-    (require 'cl)
-    (defalias 'parse-time-incf 'incf)))
+  (ignore-errors (require 'cl-lib)))
+(eval-when-compile
+  (require 'cl)                                ;and ah ain't kiddin' 'bout it
+  (defalias 'parse-time-incf (if (featurep 'cl-lib) 'cl-incf 'incf)))
 
 ;; Byte-compiler warnings
 (defvar parse-time-elt)