aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-04-29 09:47:07 +0100
committerArtur Malabarba2015-04-29 09:48:07 +0100
commit3c0ea587daf8b17960b90603a70e3ac4057d883d (patch)
tree9ec1812c1b5dbf9c875aa8196a8022aeecbe203e
parentf66b16c3659ed3d58ce700190b22001db77d9bfd (diff)
downloademacs-3c0ea587daf8b17960b90603a70e3ac4057d883d.tar.gz
emacs-3c0ea587daf8b17960b90603a70e3ac4057d883d.zip
* lisp/emacs-lisp/bytecomp.el: Use `inhibit-message'
(byte-compile--message): Use `inhibit-message' instead of hiding the previous message with (message nil).
-rw-r--r--lisp/emacs-lisp/bytecomp.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 51bbf8a2944..d732c730bff 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -986,9 +986,8 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
986 "Like `message', except sometimes don't print to minibuffer. 986 "Like `message', except sometimes don't print to minibuffer.
987If the variable `byte-compile--interactive' is nil, the message 987If the variable `byte-compile--interactive' is nil, the message
988is not displayed on the minibuffer." 988is not displayed on the minibuffer."
989 (apply #'message format args) 989 (let ((inhibit-message (not byte-compile--interactive)))
990 (unless byte-compile--interactive 990 (apply #'message format args)))
991 (message nil)))
992 991
993;; Log something that isn't a warning. 992;; Log something that isn't a warning.
994(defun byte-compile-log-1 (string) 993(defun byte-compile-log-1 (string)