diff options
| author | Michael Albinus | 2015-07-16 20:04:07 +0200 |
|---|---|---|
| committer | Michael Albinus | 2015-07-16 20:04:07 +0200 |
| commit | fa5a880f733cbbe3b0d515ed3e1cf7c6fd54cfd8 (patch) | |
| tree | 60653bdeb82fddff7664cd8cfe3e2740f36857ef /test | |
| parent | 572cd26f3f03995dbb3689b8a6f0a575ec9b9cb6 (diff) | |
| download | emacs-fa5a880f733cbbe3b0d515ed3e1cf7c6fd54cfd8.tar.gz emacs-fa5a880f733cbbe3b0d515ed3e1cf7c6fd54cfd8.zip | |
Fix Bug#20943.
* lisp/autorevert.el (auto-revert-handler): Do not check for
`buffer-modified-p'.
* lisp/files.el (buffer-stale--default-function): Check for
`buffer-modified-p'.
* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Adapt test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/auto-revert-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/automated/auto-revert-tests.el b/test/automated/auto-revert-tests.el index a98428f7d89..204e03d423d 100644 --- a/test/automated/auto-revert-tests.el +++ b/test/automated/auto-revert-tests.el | |||
| @@ -173,8 +173,8 @@ | |||
| 173 | (null | 173 | (null |
| 174 | (string-match name (substring-no-properties (buffer-string))))) | 174 | (string-match name (substring-no-properties (buffer-string))))) |
| 175 | 175 | ||
| 176 | ;; When the dired buffer is modified, it shall not be | 176 | ;; Make dired buffer modified. Check, that the buffer has |
| 177 | ;; reverted. This is questionable, see Bug#20943. | 177 | ;; been still reverted. |
| 178 | (with-current-buffer (get-buffer-create "*Messages*") | 178 | (with-current-buffer (get-buffer-create "*Messages*") |
| 179 | (narrow-to-region (point-max) (point-max))) | 179 | (narrow-to-region (point-max) (point-max))) |
| 180 | (set-buffer-modified-p t) | 180 | (set-buffer-modified-p t) |
| @@ -189,7 +189,7 @@ | |||
| 189 | (format "Reverting buffer `%s'." (buffer-name buf)) | 189 | (format "Reverting buffer `%s'." (buffer-name buf)) |
| 190 | (buffer-string))) | 190 | (buffer-string))) |
| 191 | (read-event nil nil 0.1)))) | 191 | (read-event nil nil 0.1)))) |
| 192 | (should-not | 192 | (should |
| 193 | (string-match name (substring-no-properties (buffer-string)))))) | 193 | (string-match name (substring-no-properties (buffer-string)))))) |
| 194 | 194 | ||
| 195 | ;; Exit. | 195 | ;; Exit. |