]> git.eshelyaron.com Git - emacs.git/commit
Keep auto-revert-mode working when changing buffer file name (bug#36159)
authorMattias Engdegård <mattiase@acm.org>
Mon, 10 Jun 2019 15:52:50 +0000 (17:52 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 11 Jun 2019 20:15:38 +0000 (22:15 +0200)
commite92dac3434d30b870461898a336854879620f400
tree888eca0db7ebaccdd9c5cf13a98b66d6337df7c2
parent2b8f9ded06590d8e299ed25e09a0db7af0299fe4
Keep auto-revert-mode working when changing buffer file name (bug#36159)

* lisp/autorevert.el (after-set-visited-file-name-hook):
Add unconditionally.
(global-auto-revert-mode): Don't use
`after-set-visited-file-name-hook' here.
(auto-revert-set-visited-file-name): Rename from
`auto-revert--global-set-visited-file-name' and generalise.
* test/lisp/autorevert-tests.el (auto-revert-test06-write-file): New.
lisp/autorevert.el
test/lisp/autorevert-tests.el