Subject: bug#19514: 25.0.50; byte-compile-file too tight-lipped

From: Paul Eggert <[email-masked]>
Date: Tue, 06 Jan 2015 15:30:51 -0800

Hmm, well, dgnushack shouldn't rely on byte-compile-file outputting 
messages when not verbose.  One way to fix this is for dgnushack to set 
byte-compile-verbose, but that might make dgnushack *too* verbose.  So 
how about the attached patch to dgnushack instead?

diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el
index 9d862bd..237fbef 100644
--- a/lisp/dgnushack.el
+++ b/lisp/dgnushack.el
@@ -272,6 +272,11 @@ in `defcustom' forms."
 		 (equal (nth 1 form) ''nconc))
 	(setq form (cons 'mapcan (cdr last)))))))
 
+(defun dgnushack-compile-file (file)
+  "Byte-compile FILE after reporting that it's being compiled."
+  (message "Compiling %s..." file)
+  (byte-compile-file file))
+
 (defun dgnushack-compile-verbosely ()
   "Call dgnushack-compile with warnings ENABLED.  If you are compiling
 patches to gnus, you should consider modifying make.bat to call
@@ -349,10 +354,10 @@ This means that every warning will be reported as an error."
 	(if error-on-warn
 	    (let ((byte-compile-error-on-warn t))
 	      (unless (ignore-errors
-			(byte-compile-file file))
+			(dgnushack-compile-file file))
 		(setq compilesuccess nil)))
 	  (ignore-errors
-	    (byte-compile-file file)))))
+	    (dgnushack-compile-file file)))))
     compilesuccess))
 
 (defun dgnushack-recompile ()
@@ -383,8 +388,7 @@ This means that every warning will be reported as an error."
 	  (Custom-make-dependencies))
       (ad-unadvise 'directory-files))
     (when (featurep 'xemacs)
-      (message "Compiling %s..." dgnushack-cus-load-file)
-      (byte-compile-file dgnushack-cus-load-file))))
+      (dgnushack-compile dgnushack-cus-load-file))))
 
 (defun dgnushack-make-auto-load ()
   (require 'autoload)
@@ -455,8 +459,7 @@ This means that every warning will be reported as an error."
 ;;; gnus-load.el ends here
 ")
       ))
-  (message "Compiling %s..." dgnushack-gnus-load-file)
-  (byte-compile-file dgnushack-gnus-load-file)
+  (dgnushack-compile-file dgnushack-gnus-load-file)
   (when (featurep 'xemacs)
     (message "Creating dummy gnus-load.el...")
     (with-temp-file (expand-file-name "gnus-load.el")