Fix Bug#23276
* lisp/autorevert.el (auto-revert-handler): Ignore errors coming from `revert-buffer'. (Bug#23276)
This commit is contained in:
parent
2007e32444
commit
5a0cbe51f4
1 changed files with 4 additions and 1 deletions
|
@ -684,7 +684,10 @@ This is an internal function used by Auto-Revert Mode."
|
||||||
;; not to forget that. This gives undesirable results when
|
;; not to forget that. This gives undesirable results when
|
||||||
;; the file's mode changes, but that is less common.
|
;; the file's mode changes, but that is less common.
|
||||||
(let ((buffer-read-only buffer-read-only))
|
(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.
|
||||||
|
(ignore-errors
|
||||||
|
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))))
|
||||||
(when buffer-file-name
|
(when buffer-file-name
|
||||||
(when eob (goto-char (point-max)))
|
(when eob (goto-char (point-max)))
|
||||||
(dolist (window eoblist)
|
(dolist (window eoblist)
|
||||||
|
|
Loading…
Add table
Reference in a new issue