]> git.eshelyaron.com Git - emacs.git/commit
Enhance the auto-revert to avoid revert a buffer in short time
authorLin Sun <sunlin7@hotmail.com>
Sun, 20 Oct 2024 08:05:19 +0000 (10:05 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 19:00:50 +0000 (21:00 +0200)
commitb5bfd62e659c9a2327fc6025d1e4b398ff13cbf7
treedab6772efbd91041b499488934a7ed301f58fe44
parent4ee9d93778dc0915f874b425ce405b19903a3e10
Enhance the auto-revert to avoid revert a buffer in short time

* lisp/autorevert.el (auto-revert--last-time): New defvar.
(auto-revert-handler, auto-revert-notify-handler): Use it.
* test/lisp/autorevert-tests.el (with-auto-revert-test): Set
`auto-revert--lockout-interval' correctly.

(cherry picked from commit 545c54aea1ecccf84eaebbe3a3cb7b5fbc5716f8)
lisp/autorevert.el
test/lisp/autorevert-tests.el