From 0fe9cacd4c2b5cc8f12f994655f90b632be452ee Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Sat, 27 Sep 2014 13:03:05 +0000 Subject: [PATCH] parse-time.el: Require cl when compiling --- lisp/ChangeLog | 4 ++++ lisp/parse-time.el | 10 ++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e23844786..23eed71f9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-09-27 Katsumi Yamaoka + + * parse-time.el: Require cl when compiling. + 2014-09-26 Katsumi Yamaoka Use cl-lib as much as possible following the 2014-09-26 change diff --git a/lisp/parse-time.el b/lisp/parse-time.el index 392aff240..bbbf3d734 100644 --- a/lisp/parse-time.el +++ b/lisp/parse-time.el @@ -35,12 +35,10 @@ ;;; 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) -- 2.25.1