diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 9275513c8d2..079750a3f6a 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -815,7 +815,8 @@ This is an internal function used by Auto-Revert Mode." (when revert (when (and auto-revert-verbose (not (eq revert 'fast))) - (message "Reverting buffer `%s'." (buffer-name))) + (with-current-buffer (window-buffer (old-selected-window)) + (minibuffer-message "Reverting buffer `%s'." (buffer-name)))) ;; If point (or a window point) is at the end of the buffer, we ;; want to keep it at the end after reverting. This allows one ;; to tail a file. diff --git a/lisp/emacs-lisp/ert-x.el b/lisp/emacs-lisp/ert-x.el index ee561d5b953..d09d3ae11e3 100644 --- a/lisp/emacs-lisp/ert-x.el +++ b/lisp/emacs-lisp/ert-x.el @@ -321,7 +321,7 @@ code under test from the behavior of the *Messages* buffer." COLLECTOR will be called with the message before it is passed to the real `message'." (lambda (func &rest args) - (if (or (null args) (equal (car args) "")) + (if (or (null args) (member (car args) '("" nil))) (apply func args) (let ((msg (apply #'format-message args))) (funcall collector (concat msg "\n"))