Dale Sedivec writes: > Lately, while in the process of using Magit, I've frequently gotten > "Selecting deleting buffer" errors. Same here. > I have global-auto-revert-mode on. I *suspect* this happens because > *something* kills a buffer between when auto-revert-buffers collects > the list of buffers with (buffer-list) and when auto-revert-buffers > starts its final traversal of buffers in bufs (which starts out as > (buffer-list) in global-auto-revert-mode). My case is slightly different. I enable auto-revert-mode neither locally nor globally, so Magit automatically enables magit-auto-revert-mode instead. This means that the killed buffers causing the auto-revert-buffers timer to choke are present in auto-revert-buffer-list, rather than (buffer-list). Normally, killed buffers are removed from auto-revert-buffer-list thanks to the local kill-buffer-hook function auto-revert-remove-current-buffer. But instrumenting get-buffer-create and kill-buffer revealed that kill-buffer-hook wasn't run sometimes, specifically when an uninitialised inhibit_buffer_hooks happened to be non-zero. Eli, is the following TRT?