From: Andreas Seik <andreas_neu@gmxpro.de>
Subject: Re: watching files
Date: Sun, 20 Nov 2005 21:10:00 +0100 [thread overview]
Message-ID: <4380d95a$0$24985$9b622d9e@news.freenet.de> (raw)
In-Reply-To: 87ek5cagj2.wl@nospam.anselm.chemie.fu-berlin.de
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 :-(
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
next prev parent reply other threads:[~2005-11-20 20:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 12:55 watching files Andreas Seik
2005-11-18 18:58 ` rgb
2005-11-19 13:55 ` Anselm Helbig
2005-11-20 20:10 ` Andreas Seik [this message]
2005-11-21 19:32 ` John Russell
2005-11-21 22:05 ` Andreas Seik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4380d95a$0$24985$9b622d9e@news.freenet.de' \
--to=andreas_neu@gmxpro.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).