diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-08-09 15:03:23 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-08-09 15:03:23 +0200 |
commit | 12a982d9789052d8e85efcacb4b311f4876c882a (patch) | |
tree | a452a8e888c6ee9c85d6a487359b7a1c0c9fa15b /lisp/emacs-lisp/autoload.el | |
parent | 80d7f710f2fab902e46aa3fddb8e1c1795420af3 (diff) | |
parent | 8e82baf5a730ff542118ddba5b76afdc1db643f6 (diff) | |
download | emacs-12a982d9789052d8e85efcacb4b311f4876c882a.tar.gz |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index d9da36586ce..05eb0ac5693 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -1126,7 +1126,7 @@ write its autoloads into the specified file instead." ;; Elements remaining in FILES have no existing autoload sections yet. (let ((no-autoloads-time (or last-time '(0 0 0 0))) (progress (make-progress-reporter - (byte-compile-info-string + (byte-compile-info (concat "Scraping files for " (file-relative-name generated-autoload-file))) @@ -1169,6 +1169,19 @@ write its autoloads into the specified file instead." ;; file-local autoload-generated-file settings. (autoload-save-buffers)))) +(defun batch-update-autoloads--summary (strings) + (let ((message "")) + (while strings + (when (> (length (concat message " " (car strings))) 64) + (byte-compile-info (concat message " ...") t "SCRAPE") + (setq message "")) + (setq message (if (zerop (length message)) + (car strings) + (concat message " " (car strings)))) + (setq strings (cdr strings))) + (when (> (length message) 0) + (byte-compile-info message t "SCRAPE")))) + ;;;###autoload (defun batch-update-autoloads () "Update loaddefs.el autoloads in batch mode. @@ -1192,6 +1205,7 @@ should be non-nil)." (or (string-match "\\`site-" file) (push (expand-file-name file) autoload-excludes))))))) (let ((args command-line-args-left)) + (batch-update-autoloads--summary args) (setq command-line-args-left nil) (apply #'update-directory-autoloads args))) |