From: Michael Albinus Date: Tue, 27 Oct 2015 09:01:13 +0000 (+0100) Subject: Fix subtle bug in auto-revert-tests.el X-Git-Tag: emacs-25.0.90~1003^2^2~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14d725725b058e7fb2bc081ad1137883d9079923;p=emacs.git Fix subtle bug in auto-revert-tests.el * test/automated/auto-revert-tests.el (auto-revert-test02-auto-revert-mode-dired): Narrow *Messages* buffer where it belongs to. (Bug#21668) --- diff --git a/test/automated/auto-revert-tests.el b/test/automated/auto-revert-tests.el index 86184d613fc..7cabc5c3e66 100644 --- a/test/automated/auto-revert-tests.el +++ b/test/automated/auto-revert-tests.el @@ -136,8 +136,6 @@ buf) (unwind-protect (progn - (with-current-buffer (get-buffer-create "*Messages*") - (narrow-to-region (point-max) (point-max))) (setq buf (dired-noselect temporary-file-directory)) (with-current-buffer buf ;; `buffer-stale--default-function' checks for @@ -151,6 +149,8 @@ ;; Delete file. We wait for a second, in order to have ;; another timestamp. + (with-current-buffer (get-buffer-create "*Messages*") + (narrow-to-region (point-max) (point-max))) (sleep-for 1) (delete-file tmpfile)