Mercurial > emacs
changeset 59221:4de707f3cc8e
(auto-revert-tail-handler): Put in undo boundaries.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Thu, 30 Dec 2004 23:27:23 +0000 |
parents | 2375d42b7362 |
children | ba2c5f48b5d7 |
files | lisp/autorevert.el |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/autorevert.el Thu Dec 30 23:14:25 2004 +0000 +++ b/lisp/autorevert.el Thu Dec 30 23:27:23 2004 +0000 @@ -444,11 +444,13 @@ (file buffer-file-name) buffer-file-name) ; ignore that file has changed (when (> size auto-revert-tail-pos) + (undo-boundary) (save-restriction (widen) (save-excursion (goto-char (point-max)) (insert-file-contents file nil auto-revert-tail-pos size))) + (undo-boundary) (setq auto-revert-tail-pos size) (set-buffer-modified-p modified))) (set-visited-file-modtime))