emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popup when buffer file is changed on disk


From: Eli Zaretskii
Subject: Re: Popup when buffer file is changed on disk
Date: Sun, 06 Feb 2005 11:53:26 +0200

> From: "Lennart Borgman" <address@hidden>
> Cc: <address@hidden>, <address@hidden>
> Date: Sun, 6 Feb 2005 10:02:20 +0100
> 
> > When Emacs warns you that the file was changed, what would you do in
> > response?  I thought that you would revert the buffer, so auto-revert
> > seemed like a good solution.
> 
> auto-revert-mode does what it does later, not at the moment Emacs gets
> focus.

??? auto-revert-mode periodically checks all buffers that are visiting
a file.  The frequency of these checks is determined by the variable
auto-revert-interval, by default every 5 seconds.

Perhaps you need to set auto-revert-stop-on-user-input to nil and
maybe also play with auto-revert-interval's value, to get almost
instanteneous automatic reverts whenever a file changes.

> I believe that at the moment when Emacs gets focus it should for all
> files that are visited in buffers and changed outside of Emacs should ask:
> 
>      "File AA.C has changed on disk. Do you want to reload it?"

Perhaps a feature can be added to autorevert.el, whereby it checks the
buffers when a focus event arrives.  All the rest is already there, I
believe.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]