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)
This commit is contained in:
parent
22579baf62
commit
14d725725b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue