diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-18 01:05:58 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-18 01:05:58 +0200 |
commit | 56a90c4234afb41b6d41a356ab4a35e71923552c (patch) | |
tree | be67744a2edacdf225bc27af73ed53224e02ab1f /lisp/emacs-lisp/autoload.el | |
parent | 8b8280ac7f502bc0731d03e9d0122ff068ead47f (diff) | |
download | emacs-56a90c4234afb41b6d41a356ab4a35e71923552c.tar.gz |
Output progress messages when scraping autoloads during bootstrap
* lisp/emacs-lisp/byte-run.el (byte-compile-info-message): New
function to outout informational messages during byte compilation.
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Use it
to report progress when scraping autoloads during bootstrap (which
may take half a minute).
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 19e1e93621d..4661f89523b 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -1061,6 +1061,7 @@ write its autoloads into the specified file instead." ;; Files with no autoload cookies or whose autoloads go to other ;; files because of file-local autoload-generated-file settings. (no-autoloads nil) + (file-count 0) (autoload-modified-buffers nil) (generated-autoload-file (if (called-interactively-p 'interactive) @@ -1126,6 +1127,10 @@ 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))) file-time) (dolist (file files) + (setq file-count (1+ file-count)) + (when (zerop (mod file-count 100)) + (byte-compile-info-message "Scraped autoloads from %d files" + file-count)) (cond ;; Passing nil as second argument forces ;; autoload-generate-file-autoloads to look for the right |