diff options
| author | Roland McGrath | 1996-01-21 20:20:46 +0000 |
|---|---|---|
| committer | Roland McGrath | 1996-01-21 20:20:46 +0000 |
| commit | d5aa62ec563dc0cf63bed02433c7c8f6d375b97a (patch) | |
| tree | 5a03b4e98b9a7060b5ee0856306c9fe254ff2968 | |
| parent | 994a65f39611c9e1283ad946452556ce15adc436 (diff) | |
| download | emacs-d5aa62ec563dc0cf63bed02433c7c8f6d375b97a.tar.gz emacs-d5aa62ec563dc0cf63bed02433c7c8f6d375b97a.zip | |
(update-file-autoloads): Only give "up to date" msg if (interactive-p).
(update-autoloads-from-directory): Call expand-file-name on arg.
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 439f13cd515..4490cb7533d 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -309,7 +309,6 @@ autoloads go somewhere else.") | |||
| 309 | (let ((begin (match-beginning 0)) | 309 | (let ((begin (match-beginning 0)) |
| 310 | (last-time (nth 4 form)) | 310 | (last-time (nth 4 form)) |
| 311 | (file-time (nth 5 (file-attributes file)))) | 311 | (file-time (nth 5 (file-attributes file)))) |
| 312 | (message "%s: las %s vs %s" file last-time file-time) | ||
| 313 | (if (and (or (null existing-buffer) | 312 | (if (and (or (null existing-buffer) |
| 314 | (not (buffer-modified-p existing-buffer))) | 313 | (not (buffer-modified-p existing-buffer))) |
| 315 | (listp last-time) (= (length last-time) 2) | 314 | (listp last-time) (= (length last-time) 2) |
| @@ -318,8 +317,10 @@ autoloads go somewhere else.") | |||
| 318 | (>= (nth 1 last-time) | 317 | (>= (nth 1 last-time) |
| 319 | (nth 1 file-time))))) | 318 | (nth 1 file-time))))) |
| 320 | (progn | 319 | (progn |
| 321 | (message "Autoload section for %s is up to date." | 320 | (if (interactive-p) |
| 322 | file) | 321 | (message "\ |
| 322 | Autoload section for %s is up to date." | ||
| 323 | file)) | ||
| 323 | (setq found 'up-to-date)) | 324 | (setq found 'up-to-date)) |
| 324 | (search-forward generate-autoload-section-trailer) | 325 | (search-forward generate-autoload-section-trailer) |
| 325 | (delete-region begin (point)) | 326 | (delete-region begin (point)) |
| @@ -375,6 +376,7 @@ autoloads go somewhere else.") | |||
| 375 | Update loaddefs.el with all the current autoloads from DIR, and no old ones. | 376 | Update loaddefs.el with all the current autoloads from DIR, and no old ones. |
| 376 | This uses `update-file-autoloads' (which see) do its work." | 377 | This uses `update-file-autoloads' (which see) do its work." |
| 377 | (interactive "DUpdate autoloads from directory: ") | 378 | (interactive "DUpdate autoloads from directory: ") |
| 379 | (setq dir (expand-file-name dir)) | ||
| 378 | (let ((files (directory-files dir nil "^[^=].*\\.el$"))) | 380 | (let ((files (directory-files dir nil "^[^=].*\\.el$"))) |
| 379 | (save-excursion | 381 | (save-excursion |
| 380 | (set-buffer (find-file-noselect | 382 | (set-buffer (find-file-noselect |