From: Anselm Helbig <anselm@chemie.fu-berlin.de>
Subject: Re: watching files
Date: Sat, 19 Nov 2005 14:55:29 +0100 [thread overview]
Message-ID: <87ek5cagj2.wl@nospam.anselm.chemie.fu-berlin.de> (raw)
In-Reply-To: <dlkjar$bgp$1@nx6.HRZ.Uni-Dortmund.DE>
> 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-19 13:55 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 [this message]
2005-11-20 20:10 ` Andreas Seik
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=87ek5cagj2.wl@nospam.anselm.chemie.fu-berlin.de \
--to=anselm@chemie.fu-berlin.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).