]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix subtle bug in auto-revert-tests.el
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Oct 2015 09:01:13 +0000 (10:01 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Oct 2015 09:01:13 +0000 (10:01 +0100)
* 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

index 86184d613fc5f028994c85a43260b02f55bd6d42..7cabc5c3e66e5d9b527999746660666a7b3673b2 100644 (file)
          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
 
            ;; 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)