Commit d918508e authored by Luc Teirlinck's avatar Luc Teirlinck
Browse files

(auto-revert-tail-handler): Put in undo boundaries.

parent 51b4073a
2004-12-30 Luc Teirlinck <teirllm@auburn.edu>
* autorevert.el (auto-revert-tail-handler): Put in undo boundaries.
2004-12-31 Masatake YAMATO <jet@gyve.org>
 
* server.el (server-process-filter): Suppress `error', too.
......
......@@ -444,11 +444,13 @@ This is an internal function used by Auto-Revert Mode."
(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))
......
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