Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would it take to get auto-revert-mode to actually work in my dired buffer?

Tags:

emacs

revert

Apparently auto-revert-mode is supposed to work in dired buffers.
I had never heard of this, but the doc says it works.

Then I read a little more and found some fine print:

Auto-reverting Dired buffers currently works on GNU or Unix style operating systems. It may not work satisfactorily on some other systems.

...and...

[dired buffers] do not auto-revert when information about a particular file changes (e.g. when the size changes) or when inserted subdirectories change. To be sure that all listed information is up to date, you have to manually revert using g, even if auto-reverting is enabled in the Dired buffer.

source

Well, uh, gee.... That doesn't sound like autorevert to me.
What would it take to get auto-revert for dired to actually work? Even on (gasp) non-Unix operating systems.

Could I just modify auto-revert-handler to call revert-buffer on dired buffers?

like image 521
Cheeso Avatar asked Dec 24 '10 19:12

Cheeso


1 Answers

This class may be of-use for later Windows OS's, but t.b.h. I've no idea how to integrate into emacs \ auto-revert. Believe you've done similar work before Cheeso (c# \ powershell integration), so I'd imagine you're the expert.

like image 157
cristobalito Avatar answered Oct 22 '22 08:10

cristobalito