[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 56a90c4: Output progress messages when scraping aut
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 56a90c4: Output progress messages when scraping autoloads during bootstrap |
Date: |
Mon, 17 Jun 2019 19:06:14 -0400 (EDT) |
branch: master
commit 56a90c4234afb41b6d41a356ab4a35e71923552c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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).
---
lisp/emacs-lisp/autoload.el | 5 +++++
lisp/emacs-lisp/byte-run.el | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 19e1e93..4661f89 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
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 3a2043b..30a9f98 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."
(mapconcat (lambda (char) (format "`?\\%c'" char))
sorted ", ")))))
+(defun byte-compile-info-message (&rest args)
+ "Message format ARGS in a way that looks pleasing in the compilation output."
+ (message "%s" (concat " INFO " (apply #'format args))))
+
;; I nuked this because it's not a good idea for users to think of using it.
;; These options are a matter of installation preference, and have nothing to
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 56a90c4: Output progress messages when scraping autoloads during bootstrap,
Lars Ingebrigtsen <=