From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: other output Date: Mon, 17 Jun 2019 22:27:13 +0200 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> <83a7eo9nsh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="121426"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 22:27:43 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcyEA-000VUS-MT for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 22:27:42 +0200 Original-Received: from localhost ([::1]:51772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcyE9-0004TR-NP for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 16:27:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35870) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcyDn-0004Qr-7V for emacs-devel@gnu.org; Mon, 17 Jun 2019 16:27:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcyDl-0002SB-SD for emacs-devel@gnu.org; Mon, 17 Jun 2019 16:27:19 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:46376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcyDl-0002R2-LH for emacs-devel@gnu.org; Mon, 17 Jun 2019 16:27:17 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcyDh-0000Qw-DF for emacs-devel@gnu.org; Mon, 17 Jun 2019 22:27:15 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEU1FE1lOW4mCUNMJVul brQHWCMmAAACTUlEQVQ4jW1TgZHcIAwUKAWAoQAsUoBALiB83H9NWWH/z/9MfDe2T4tW0q6ORr7/ exHl91q1/gA0lJLHg/0AEuWSrWSA40l57hSIQzJDvNgTyvfCC7EZ45MGECdzcO3izGTEiUdJT4d1 5V2cVAfhEQrp8ON1pxFrSKxEod7KuK1cX6rESRMFZ1atfh5kpRKKJCJwrOtePLIDaGOQNH0G8Iop uAQZI2dqhV+58rxWGEXHloBODS+QhG9oYJjWAZ/vAY4GxmJzZLvTRZb0BWb3UoFZeSUGFTtrwRjk wB+0OWoy6sxp+ID3ehL5CBY0UwiNVSg2y5/NZar5ovOMGkmjSAtb9r+qNgBYU5LhgEjgzRWNc6UZ 24TuG2i7/MdJGI0odpSWndK2UuuwHAvNroyQkQPjtbvA8aQqOK1O1lJ1O/52SkI8teEw776yRYy/ ODahc3JwYGeYMqosamjotP4LIUYDMK1dXsRGxH5EU2/0ufhxcBxwUFr8isNj12Wpj8Ei34CtWKIR /ZB85/IUuIhyetpnTkMDcG1hDSY6O7tPCCQ6xJDWOgPg8K0MMFZsgffegnKc7YmCgAEVvEdh+IS9 a5sq4hnKwDvssckkcVPBY6GwclIf0BU/eUZIJ/hikY0mYYbC1/wt28N9XUtlQnap+COf9zGfcBTs L5hbipy9tERtUzqEC4mQARP42QQsiYVa3DT4RFF7cE2E2vlRuRRpPfEBOdHT8VmY9p19GPIf7Qm/ 1aXNeU4faZ+L7avdnmaf2OboLQJo0RkxZj9A8w/nDo/m8ZWbrQAAAABJRU5ErkJggg== In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 17 Jun 2019 21:56:58 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237801 Archived-At: OK, with the patch below I now get GEN loaddefs.el Not registering prefix "lo" from completion. Affects: ("locate-completion-entry" "locate-completion-entry-retry" "locate-completion-db-error" "load-completions-from-file") INFO Processed 100 completions from files Not registering prefix "*" from ielm. Affects: ("*" "**" "***" "*1" "*2" "*3") INFO Processed 200 completions from files INFO Processed 300 completions from files INFO Processed 400 completions from files INFO Processed 500 completions from files INFO Processed 600 completions from files INFO Processed 700 completions from files INFO Processed 800 completions from files Not registering prefix "is" from ind-util. Affects: ("is13194-default-repertory" "is13194-repertory-to-ucs-script" "is13194-to-ucs-devanagari-hashtbl" "is13194-to-ucs-devanagari-regexp" "is13194-to-ucs-bengali-hashtbl" "is13194-to-ucs-bengali-regexp" "is13194-to-ucs-assamese-hashtbl" "is13194-to-ucs-assamese-regexp" "is13194-to-ucs-gurmukhi-hashtbl" "is13194-to-ucs-gurmukhi-regexp" "is13194-to-ucs-gujarati-hashtbl" "is13194-to-ucs-gujarati-regexp" "is13194-to-ucs-oriya-hashtbl" "is13194-to-ucs-oriya-regexp" "is13194-to-ucs-tamil-hashtbl" "is13194-to-ucs-tamil-regexp" "is13194-to-ucs-telugu-hashtbl" "is13194-to-ucs-telugu-regexp" "is13194-to-ucs-malayalam-hashtbl" "is13194-to-ucs-malayalam-regexp" "is13194-to-ucs-kannada-hashtbl" "is13194-to-ucs-kannada-regexp" "iscii-to-ucs-region") INFO Processed 900 completions from files INFO Processed 1000 completions from files INFO Processed 1100 completions from files INFO Processed 1200 completions from files INFO Processed 1300 completions from files Not registering prefix "se" from page-ext. Affects: ("search-pages" "set-page-delimiter") INFO Processed 1400 completions from files make[3]: Leaving directory '/home/larsi/src/emacs/trunk/lisp' GEN ../etc/DOC This part of the compilation takes about 30 seconds on my faster machine. I don't see much value in the "Not registering" messages, because I don't see how any developer would respond to the output, but I may be totally wrong here. Does the INFO thing look reasonable? diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 19e1e93621..8c9c53c6e5 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -1061,6 +1061,7 @@ update-directory-autoloads ;; 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 @@ update-directory-autoloads ;; 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 "Processed %d completions from 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 3a2043bad7..30a9f98479 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -540,6 +540,10 @@ byte-run--unescaped-character-literals-warning (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 -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no