aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2004-04-27 22:46:52 +0000
committerJuanma Barranquero2004-04-27 22:46:52 +0000
commit66dc9a0f2f01edcef8f8ad0d891905409120c081 (patch)
tree296c40c1fb2e53d9f925cd3d9b9691f290324c7d
parent1c226f2ba57eb267665b62ec6fb6660d72430800 (diff)
downloademacs-66dc9a0f2f01edcef8f8ad0d891905409120c081.tar.gz
emacs-66dc9a0f2f01edcef8f8ad0d891905409120c081.zip
(autoload-before-p): Remove.
(update-file-autoloads, update-directory-autoloads): Use `time-less-p'.
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/emacs-lisp/autoload.el12
2 files changed, 18 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 68a2ebf185d..9922778a5c8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,18 @@
12004-04-28 Juanma Barranquero <lektu@terra.es>
2
3 Use `time-less-p' from calendar/time-date.el instead of defining
4 custom versions of it.
5
6 * pcomplete.el (pcomplete-time-less-p): Remove.
7
8 * thumbs.el (time-less-p): Remove.
9
10 * calendar/timeclock.el (timeclock-time-less-p): Remove.
11 (timeclock-generate-report): Use `time-less-p'.
12
13 * emacs-lisp/autoload.el (autoload-before-p): Remove.
14 (update-file-autoloads, update-directory-autoloads): Use `time-less-p'.
15
12004-04-28 Masatake YAMATO <jet@gyve.org> 162004-04-28 Masatake YAMATO <jet@gyve.org>
2 17
3 * subr.el (remove-overlays): Make arguments optional. 18 * subr.el (remove-overlays): Make arguments optional.
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 43da3d09827..21843c9601d 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -1,6 +1,6 @@
1;; autoload.el --- maintain autoloads in loaddefs.el 1;; autoload.el --- maintain autoloads in loaddefs.el
2 2
3;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2001, 2003 3;; Copyright (C) 1991,92,93,94,95,96,97, 2001,02,03,04
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: Roland McGrath <roland@gnu.org> 6;; Author: Roland McGrath <roland@gnu.org>
@@ -407,7 +407,7 @@ Return FILE if there was no autoload cookie in it."
407 (if (and (or (null existing-buffer) 407 (if (and (or (null existing-buffer)
408 (not (buffer-modified-p existing-buffer))) 408 (not (buffer-modified-p existing-buffer)))
409 (listp last-time) (= (length last-time) 2) 409 (listp last-time) (= (length last-time) 2)
410 (not (autoload-before-p last-time file-time))) 410 (not (time-less-p last-time file-time)))
411 (progn 411 (progn
412 (if (interactive-p) 412 (if (interactive-p)
413 (message "\ 413 (message "\
@@ -468,11 +468,6 @@ Autoload section for %s is up to date."
468 468
469 (if no-autoloads file)))) 469 (if no-autoloads file))))
470 470
471(defun autoload-before-p (time1 time2)
472 (or (< (car time1) (car time2))
473 (and (= (car time1) (car time2))
474 (< (nth 1 time1) (nth 1 time2)))))
475
476(defun autoload-remove-section (begin) 471(defun autoload-remove-section (begin)
477 (goto-char begin) 472 (goto-char begin)
478 (search-forward generate-autoload-section-trailer) 473 (search-forward generate-autoload-section-trailer)
@@ -527,8 +522,7 @@ directory or directories specified."
527 (dolist (file file) 522 (dolist (file file)
528 (let ((file-time (nth 5 (file-attributes file)))) 523 (let ((file-time (nth 5 (file-attributes file))))
529 (when (and file-time 524 (when (and file-time
530 (not (autoload-before-p last-time 525 (not (time-less-p last-time file-time)))
531 file-time)))
532 ;; file unchanged 526 ;; file unchanged
533 (push file no-autoloads) 527 (push file no-autoloads)
534 (setq files (delete file files))))))) 528 (setq files (delete file files)))))))