0

To quote,

By default, Auto-Revert mode works using file notifications, whereby changes in the filesystem are reported to Emacs by the OS. You can disable use of file notifications by customizing the variable auto-revert-use-notify to a nil value, then Emacs will check for file changes by polling every five seconds. You can change the polling interval through the variable auto-revert-interval.

Even auto-revert-use-notify is t, auto revert still polls for every 5 seconds. I want to disable such a polling because it results a block every time it polls. The block is due to the files are on a fuse mounted disk (via vmware).

  • Mounted filesystems cannot be watched by file notification. Likely, this is the reason autorevert continues to poll. – Michael Albinus Apr 24 at 11:59
  • 1
    Is switching off auto-revert-mode an option? If not, you should mention that in your question. – Tobias Apr 24 at 13:25
2

You can just set auto-revert-interval to a very large value (like most-positive-fixnum).

  • interesting workaround. – FunkyBaby Apr 25 at 3:29
  • the problem seems more involved because inotify is disabled until the next call of auto-revert-buffers, which is due to auto-revert-buffers-counter-lockedout – FunkyBaby Apr 25 at 5:18
2

See https://debbugs.gnu.org/35418 - it discusses the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.