aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-18 01:05:58 +0200
committerLars Ingebrigtsen2019-06-18 01:05:58 +0200
commit56a90c4234afb41b6d41a356ab4a35e71923552c (patch)
treebe67744a2edacdf225bc27af73ed53224e02ab1f
parent8b8280ac7f502bc0731d03e9d0122ff068ead47f (diff)
downloademacs-56a90c4234afb41b6d41a356ab4a35e71923552c.tar.gz
emacs-56a90c4234afb41b6d41a356ab4a35e71923552c.zip
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).
-rw-r--r--lisp/emacs-lisp/autoload.el5
-rw-r--r--lisp/emacs-lisp/byte-run.el4
2 files changed, 9 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."
1061 ;; Files with no autoload cookies or whose autoloads go to other 1061 ;; Files with no autoload cookies or whose autoloads go to other
1062 ;; files because of file-local autoload-generated-file settings. 1062 ;; files because of file-local autoload-generated-file settings.
1063 (no-autoloads nil) 1063 (no-autoloads nil)
1064 (file-count 0)
1064 (autoload-modified-buffers nil) 1065 (autoload-modified-buffers nil)
1065 (generated-autoload-file 1066 (generated-autoload-file
1066 (if (called-interactively-p 'interactive) 1067 (if (called-interactively-p 'interactive)
@@ -1126,6 +1127,10 @@ write its autoloads into the specified file instead."
1126 ;; Elements remaining in FILES have no existing autoload sections yet. 1127 ;; Elements remaining in FILES have no existing autoload sections yet.
1127 (let ((no-autoloads-time (or last-time '(0 0 0 0))) file-time) 1128 (let ((no-autoloads-time (or last-time '(0 0 0 0))) file-time)
1128 (dolist (file files) 1129 (dolist (file files)
1130 (setq file-count (1+ file-count))
1131 (when (zerop (mod file-count 100))
1132 (byte-compile-info-message "Scraped autoloads from %d files"
1133 file-count))
1129 (cond 1134 (cond
1130 ;; Passing nil as second argument forces 1135 ;; Passing nil as second argument forces
1131 ;; autoload-generate-file-autoloads to look for the right 1136 ;; autoload-generate-file-autoloads to look for the right
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 3a2043bad75..30a9f984793 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -540,6 +540,10 @@ Otherwise, return nil. For internal use only."
540 (mapconcat (lambda (char) (format "`?\\%c'" char)) 540 (mapconcat (lambda (char) (format "`?\\%c'" char))
541 sorted ", "))))) 541 sorted ", ")))))
542 542
543(defun byte-compile-info-message (&rest args)
544 "Message format ARGS in a way that looks pleasing in the compilation output."
545 (message "%s" (concat " INFO " (apply #'format args))))
546
543 547
544;; I nuked this because it's not a good idea for users to think of using it. 548;; I nuked this because it's not a good idea for users to think of using it.
545;; These options are a matter of installation preference, and have nothing to 549;; These options are a matter of installation preference, and have nothing to