* dgnushack.el (dgnushack-compile-file): New function.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Jan 2015 23:59:44 +0000 (23:59 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 19 Jan 2015 23:59:44 +0000 (23:59 +0000)
(dgnushack-compile): Use it (bug#19514).

lisp/ChangeLog
lisp/dgnushack.el

index 233f2de..3d4bf59 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * dgnushack.el (dgnushack-compile-file): New function.
+       (dgnushack-compile): Use it (bug#19514).
+
 2015-01-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nntp.el (nntp-send-authinfo): Error out if the password is wrong.
index 9d862bd..46be876 100644 (file)
@@ -272,6 +272,14 @@ in `defcustom' forms."
                 (equal (nth 1 form) ''nconc))
        (setq form (cons 'mapcan (cdr last)))))))
 
+(if (featurep 'emacs)
+    (defun dgnushack-compile-file (file)
+      "Byte-compile FILE after reporting that it's being compiled."
+      (message "Compiling %s..." file)
+      ;; The Emacs 25 version of it doesn't say much.
+      (byte-compile-file file))
+  (defalias 'dgnushack-compile-file 'byte-compile-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 +357,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 ()