fre 2019-05-10 klockan 14:43 +0200 skrev Michael Albinus: > Mattias EngdegÄrd writes: > > So we must document in the Elisp manual, that buffers, which want to > participate in global-auto-revert-mode after a renaming, shall change > the name via set-visited-file-name. Are you sure about that? It sounds quite technical. But if you think it is necessary, I'll add it. > > > Perhaps we should exclude all buffers whose name start with a space > > from any kind of auto-revert, just in case. > > Agreed. Those buffers are special (internal) anyway, it's already > tricky > to show them. Nobody needs auto-revert for invisible buffers :-) The revised patch now excludes such non-file buffers. I wonder if buffers with file names should be excluded as well. They trivially occur when visiting a file whose name starts with a space. The new patch also has the tracking variable renamed to `auto-revert--global-mode' and added a new hook, `after-set-visited-file-name'; the advice calls are gone.