+2004-04-28 Juanma Barranquero <lektu@terra.es>
+
+ Use `time-less-p' from calendar/time-date.el instead of defining
+ custom versions of it.
+
+ * pcomplete.el (pcomplete-time-less-p): Remove.
+
+ * thumbs.el (time-less-p): Remove.
+
+ * calendar/timeclock.el (timeclock-time-less-p): Remove.
+ (timeclock-generate-report): Use `time-less-p'.
+
+ * emacs-lisp/autoload.el (autoload-before-p): Remove.
+ (update-file-autoloads, update-directory-autoloads): Use `time-less-p'.
+
2004-04-28 Masatake YAMATO <jet@gyve.org>
* subr.el (remove-overlays): Make arguments optional.
;; autoload.el --- maintain autoloads in loaddefs.el
-;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2001, 2003
+;; Copyright (C) 1991,92,93,94,95,96,97, 2001,02,03,04
;; Free Software Foundation, Inc.
;; Author: Roland McGrath <roland@gnu.org>
(if (and (or (null existing-buffer)
(not (buffer-modified-p existing-buffer)))
(listp last-time) (= (length last-time) 2)
- (not (autoload-before-p last-time file-time)))
+ (not (time-less-p last-time file-time)))
(progn
(if (interactive-p)
(message "\
(if no-autoloads file))))
-(defun autoload-before-p (time1 time2)
- (or (< (car time1) (car time2))
- (and (= (car time1) (car time2))
- (< (nth 1 time1) (nth 1 time2)))))
-
(defun autoload-remove-section (begin)
(goto-char begin)
(search-forward generate-autoload-section-trailer)
(dolist (file file)
(let ((file-time (nth 5 (file-attributes file))))
(when (and file-time
- (not (autoload-before-p last-time
- file-time)))
+ (not (time-less-p last-time file-time)))
;; file unchanged
(push file no-autoloads)
(setq files (delete file files)))))))