Commit 5a0cbe51 authored by Michael Albinus's avatar Michael Albinus
Browse files

Fix Bug#23276

* lisp/autorevert.el (auto-revert-handler): Ignore errors
coming from `revert-buffer'.  (Bug#23276)
parent 2007e324
......@@ -684,7 +684,10 @@ This is an internal function used by Auto-Revert Mode."
;; not to forget that. This gives undesirable results when
;; the file's mode changes, but that is less common.
(let ((buffer-read-only buffer-read-only))
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes)))
;; Bug#23276: When the file has been deleted, keep the
;; buffer unchanged.
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))))
(when buffer-file-name
(when eob (goto-char (point-max)))
(dolist (window eoblist)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment