• Mattias Engdegård's avatar
    Keep auto-revert-mode working when changing buffer file name (bug#36159) · e92dac34
    Mattias Engdegård authored
    * 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.
    e92dac34
autorevert-tests.el 23.2 KB