help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: watching files


From: John Russell
Subject: Re: watching files
Date: Mon, 21 Nov 2005 14:32:38 -0500
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Andreas Seik <andreas_neu@gmxpro.de> writes:

> Anselm Helbig wrote:
>
> Hallo Anselm,
>
> Thank You for your help, it seems that emacs is missing an important
> feature. When you switch on auto-revert-mode emacs will overwrite unchanged
> buffers without notice, and does nothing with changed buffers when the
> correspondig file changes.
> An interactive mode seems to be missing :-(

in all my emacs experience, every time a file is edited outside of emacs
as soon as I type any key in that files buffer in emacs I am asked if 
I want to revert the file because the contents have changed on disk.

This does not happen for you?  It sounds like just what you want.

John

>
> viele Grüße
> Andreas
>
>>> I would like to habe emacs check, when ever i reopen a buffer, if the
>>> correspondig file on disk has changed meanwile. Emacs shold ask me, if i
>>> want to relode the newer version.
>>> I thik this feater existsts, but i can't find the switch.
>> 
>> hallo andreas,
>> 
>> emacs checks if there have been changes to the file you are editing
>> when you try to save it. that's what rgb meant.
>> 
>> there's a minor mode you can active, `auto-revert-mode', which checks
>> in certain intervals if the file you are editing changed and then
>> loads the new version. i'm not sure if it asks you when there is a
>> conflict, i remember that i lost some changes i did when i was still
>> using it. at least there were problems when you're working on a remote
>> server which is a little out of sync with your system clock (a few
>> seconds may be trouble enough if you save often).
>> 
>> to try it for all buffers now, drop this into your .emacs:
>> 
>> (global-auto-revert-mode 1)
>> 
>> grüße,
>> 
>> anselm


reply via email to

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