From 14d725725b058e7fb2bc081ad1137883d9079923 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 27 Oct 2015 10:01:13 +0100 Subject: [PATCH] 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) --- test/automated/auto-revert-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5