aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/autorevert.el3
-rw-r--r--lisp/emacs-lisp/ert-x.el2
2 files changed, 3 insertions, 2 deletions
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."
815 (when revert 815 (when revert
816 (when (and auto-revert-verbose 816 (when (and auto-revert-verbose
817 (not (eq revert 'fast))) 817 (not (eq revert 'fast)))
818 (message "Reverting buffer `%s'." (buffer-name))) 818 (with-current-buffer (window-buffer (old-selected-window))
819 (minibuffer-message "Reverting buffer `%s'." (buffer-name))))
819 ;; If point (or a window point) is at the end of the buffer, we 820 ;; If point (or a window point) is at the end of the buffer, we
820 ;; want to keep it at the end after reverting. This allows one 821 ;; want to keep it at the end after reverting. This allows one
821 ;; to tail a file. 822 ;; 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."
321COLLECTOR will be called with the message before it is passed 321COLLECTOR will be called with the message before it is passed
322to the real `message'." 322to the real `message'."
323 (lambda (func &rest args) 323 (lambda (func &rest args)
324 (if (or (null args) (equal (car args) "")) 324 (if (or (null args) (member (car args) '("" nil)))
325 (apply func args) 325 (apply func args)
326 (let ((msg (apply #'format-message args))) 326 (let ((msg (apply #'format-message args)))
327 (funcall collector (concat msg "\n")) 327 (funcall collector (concat msg "\n"))