[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clarification about auto-revert-mode and inotify
From: |
Eli Zaretskii |
Subject: |
Re: Clarification about auto-revert-mode and inotify |
Date: |
Tue, 21 Oct 2014 21:34:40 +0300 |
> From: Dima Kogan <address@hidden>
> Date: Tue, 21 Oct 2014 10:59:29 -0700
> Cc: address@hidden
>
> > Indeed, IIUC the current auto-revert-mode implementation only uses the
> > file-notification code to reduce the amount of polling, but the revert
> > itself is still only performed from the 5s timer.
> >
> > I don't think there's a strong technical reason for that,
>
> OK.
>
> I'm attaching a prototype patch to fix this. It updates the buffer
> immediately when a change is detected, unless the previous such update
> happened very recently. If it DID happen very recently, the normal
> timer-based update kicks in later.
>
> Is such a patch reasonable? If so, I'll add the proper comments and
> docstrings, and resubmit it.
I'm sorry, but I still don't understand what's wrong with customizing
auto-revert-interval. It seems to allow what you want, and also what
others might want. So where's the problem that requires another time,
and the rest of the complexity you are suggesting?
- Re: Clarification about auto-revert-mode and inotify, (continued)
- Re: Clarification about auto-revert-mode and inotify, Stefan Monnier, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Stefan Monnier, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Stefan Monnier, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Stefan Monnier, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/22
- Re: Clarification about auto-revert-mode and inotify, Stefan Monnier, 2014/10/22
- Re: Clarification about auto-revert-mode and inotify, Dima Kogan, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify,
Eli Zaretskii <=
- Re: Clarification about auto-revert-mode and inotify, Dima Kogan, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Dima Kogan, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Dima Kogan, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/21
- Re: Clarification about auto-revert-mode and inotify, Per Starbäck, 2014/10/22
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/22
- Re: Clarification about auto-revert-mode and inotify, Per Starbäck, 2014/10/22
- Re: Clarification about auto-revert-mode and inotify, Eli Zaretskii, 2014/10/22