]> git.eshelyaron.com Git - emacs.git/commit
New global minor mode vc-auto-revert-mode
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 13 Jul 2025 11:50:22 +0000 (12:50 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:22:57 +0000 (10:22 +0200)
commit206d6bf4b0ce960912ca8a7fb2d4c078230d55d9
tree0f461bf477475de7ac7235064a98aa38095cdb36
parent0b39c5bf05c0ace16388243bb0817a9800d87cde
New global minor mode vc-auto-revert-mode

* lisp/vc/vc-hooks.el (auto-revert-mode): Declare.
(vc-auto-revert-mode): New global minor mode.
(vc-turn-on-auto-revert-mode-for-tracked-files): New function.
* lisp/vc/vc-dispatcher.el (auto-revert-mode)
(auto-revert-buffers): Declare.
(vc-resynch-window): Don't call vc-revert-buffer-internal when
auto-revert-mode will revert the buffer.  Call
auto-revert-buffers to ensure that this reversion happens in a
timely manner.
* lisp/vc/vc.el (vc-register): Apply vc-auto-revert-mode to
buffers visiting newly registered files.
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Improve the generated docstring.
* doc/emacs/vc1-xtra.texi (VC Auto-Reverting):
* etc/NEWS: Document the new minor mode.

(cherry picked from commit 9d750c7e8041437758c919f6088d6f3686847812)
doc/emacs/vc1-xtra.texi
lisp/emacs-lisp/easy-mmode.el
lisp/vc/vc-dispatcher.el
lisp/vc/vc-hooks.el
lisp/vc/vc.el