mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
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
@ -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.
|
||||
(ignore-errors
|
||||
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))))
|
||||
(when buffer-file-name
|
||||
(when eob (goto-char (point-max)))
|
||||
(dolist (window eoblist)
|
||||
|
Loading…
Reference in New Issue
Block a user