[gnus git] branch master updated: m0-11-111-g8fbe1ca =1= * dgnushack.el (dgnushack-compile-file): New function. (dgnushack-compile): Use it (bug#19514).

Katsumi <[email protected]> Tue, 20 Jan 2015 01:00:21 +0100
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  8fbe1cab213763b9122b59cfb92e8cf1da521d2c (commit)
      from  b11d1833ee1e5dc302317b8604e6d8e35e425994 (commit)


- Log -----------------------------------------------------------------
commit 8fbe1cab213763b9122b59cfb92e8cf1da521d2c
Author: Paul Eggert <[email protected]>
Date:   Mon Jan 19 23:59:44 2015 +0000

    * dgnushack.el (dgnushack-compile-file): New function.
    (dgnushack-compile): Use it (bug#19514).

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 233f2de..3d4bf59 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-19  Paul Eggert  <[email protected]>
+
+	* dgnushack.el (dgnushack-compile-file): New function.
+	(dgnushack-compile): Use it (bug#19514).
+
 2015-01-15  Lars Magne Ingebrigtsen  <[email protected]>
 
 	* nntp.el (nntp-send-authinfo): Error out if the password is wrong.
diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el
index 9d862bd..46be876 100644
--- a/lisp/dgnushack.el
+++ b/lisp/dgnushack.el
@@ -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 ()

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog    |    5 +++++
 lisp/dgnushack.el |   12 ++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project