From 1ae088fba76c9021a0d9744e303b7e7a2386a6e6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 6 Jan 2016 19:56:47 -0500 Subject: * lisp/emacs-lisp/autoload.el (autoload-find-destination): Avoid specifying the length of a time object (it has not been "2" for some time). --- lisp/emacs-lisp/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/autoload.el') diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index f21f8d63206..eed72655d18 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -716,7 +716,7 @@ removes any prior now out-of-date autoload entries." ;; last-time is the time-stamp (specifying ;; the last time we looked at the file) and ;; the file hasn't been changed since. - (and (listp last-time) (= (length last-time) 2) + (and (listp last-time) (not (time-less-p last-time file-time))) ;; last-time is an MD5 checksum instead. (and (stringp last-time) -- cgit v1.2.1 From 76fe2d526e7d4257f8c8855084bf172065aea2d1 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 6 Jan 2016 20:36:46 -0500 Subject: * lisp/emacs-lisp/autoload.el (autoload-find-destination): Doc fix. --- lisp/emacs-lisp/autoload.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/autoload.el') diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index eed72655d18..e688d6be725 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -682,8 +682,9 @@ Return FILE if there was no autoload cookie in it, else nil." (defun autoload-find-destination (file load-name) "Find the destination point of the current buffer's autoloads. FILE is the file name of the current buffer. +LOAD-NAME is the name as it appears in the output. Returns a buffer whose point is placed at the requested location. -Returns nil if the file's autoloads are uptodate, otherwise +Returns nil if the file's autoloads are up-to-date, otherwise removes any prior now out-of-date autoload entries." (catch 'up-to-date (let* ((buf (current-buffer)) -- cgit v1.2.1